[libvirt] [jenkins-ci PATCH] Forcefully remove build/ directory for autotools builds

Erik Skultety eskultet at redhat.com
Thu Sep 20 14:23:59 UTC 2018


On Thu, Sep 20, 2018 at 12:37:12PM +0200, Andrea Bolognani wrote:
> Normally this shouldn't be needed, because 'git clean -xdf' is
> executed after updating the git repository and before starting
> the build; however, some RPM builds (notably libvirt's)
> internally use git to apply patches, and if one of those fails
> it will leave a git repository inside of build/ behind, which
> 'git clean' dutifully refuses to remove and whose presence
> will in turn cause 'mkdir build', and thus the entire build,
> to fail.
>
> Solve the issue by forcefully removing build/ ourselves before
> starting an autotools build.
>
> Signed-off-by: Andrea Bolognani <abologna at redhat.com>
> ---

Tested, works.
Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list