Re: [jenkins-ci PATCH 5/5] jobs: Don't remove non-existing archives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux