Re: [jenkins-ci PATCH 2/3] guests: Don't expose 'jenkins' pseudo-package

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

 



On Tue, Mar 20, 2018 at 05:23:59PM +0100, Andrea Bolognani wrote:
> The 'jenkins' pseudo-package is an implementation detail, and
> as such is better not exposed.
> 
> Moreover, with this change the JDK will only be installed when
> the 'jenkins' flavor is used, which means developers will have
> slightly smaller guests.
> 
> Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
> ---
>  guests/host_vars/libvirt-centos-6/main.yml       | 1 -
>  guests/host_vars/libvirt-centos-7/main.yml       | 1 -
>  guests/host_vars/libvirt-debian-8/main.yml       | 1 -
>  guests/host_vars/libvirt-debian-9/main.yml       | 1 -
>  guests/host_vars/libvirt-fedora-26/main.yml      | 1 -
>  guests/host_vars/libvirt-fedora-27/main.yml      | 1 -
>  guests/host_vars/libvirt-fedora-rawhide/main.yml | 1 -
>  guests/host_vars/libvirt-freebsd-10/main.yml     | 1 -
>  guests/host_vars/libvirt-freebsd-11/main.yml     | 1 -
>  guests/site.yml                                  | 7 +++++++
>  10 files changed, 7 insertions(+), 9 deletions(-)
> 
> diff --git a/guests/site.yml b/guests/site.yml
> index 8d32561..509d31a 100644
> --- a/guests/site.yml
> +++ b/guests/site.yml
> @@ -28,6 +28,13 @@
>        when:
>          - projects is defined
>  
> +    # Install packages needed for the Jenkins agent
> +    - include: tasks/packages.yml
> +      vars:
> +        project: jenkins
> +      when:
> +        - flavor == "jenkins"
> +
>      # Configure the Jenkins agent
>      - include: tasks/jenkins.yml
>        when:

Would it make sense to move the installation of packages needed
for Jenkins agent into the jenkins task to create a single unit
out of it?

Otherwise looks good.

Pavel

Attachment: signature.asc
Description: PGP signature

--
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