[libvirt] [jenkins-ci PATCH 5/5] jobs: Don't remove non-existing archives
Erik Skultety
eskultet at redhat.com
Mon Aug 20 15:00:23 UTC 2018
On Fri, Aug 10, 2018 at 03:37:45PM +0200, Andrea Bolognani wrote:
> None of our jobs create the archives as a side-effect, so
> trying to remove them before generating them is pointless.
Who cleans them after the jobs below? Is there a chance that you could trigger
these jobs in a sequence that would expect the archives to be removed but
wouldn't? If there is a risk that this could happen, then I think this patch
should be dropped.
Erik
>
> Signed-off-by: Andrea Bolognani <abologna at redhat.com>
> ---
> jobs/autotools.yaml | 1 -
> jobs/perl-modulebuild.yaml | 1 -
> jobs/python-distutils.yaml | 1 -
> 3 files changed, 3 deletions(-)
>
> diff --git a/jobs/autotools.yaml b/jobs/autotools.yaml
> index f8a7e87..4e075bd 100644
> --- a/jobs/autotools.yaml
> +++ b/jobs/autotools.yaml
> @@ -168,7 +168,6 @@
> {local_env}
> cd build
> {strip_buildrequires}
> - rm -f *.tar.{archive_format}
> $MAKE dist
> rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta *.tar.{archive_format}
> publishers:
> diff --git a/jobs/perl-modulebuild.yaml b/jobs/perl-modulebuild.yaml
> index 8b30d7e..855e6ba 100644
> --- a/jobs/perl-modulebuild.yaml
> +++ b/jobs/perl-modulebuild.yaml
> @@ -122,7 +122,6 @@
> {global_env}
> {local_env}
> {strip_buildrequires}
> - rm -f *.tar.{archive_format}
> perl Build dist
> rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta *.tar.{archive_format}
> publishers:
> diff --git a/jobs/python-distutils.yaml b/jobs/python-distutils.yaml
> index eae5b6f..e640434 100644
> --- a/jobs/python-distutils.yaml
> +++ b/jobs/python-distutils.yaml
> @@ -122,7 +122,6 @@
> {global_env}
> {local_env}
> {strip_buildrequires}
> - rm -f dist/*.tar.{{ archive_format }}
> $PYTHON ./setup.py sdist
> rpmbuild --clean --define "_topdir `pwd`/rpmbuild" -ta dist/*.tar.{{ archive_format }}
> publishers:
> --
> 2.17.1
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
More information about the libvir-list
mailing list