On Tue, 2018-04-17 at 14:33 +0100, Daniel P. Berrangé wrote:
> Instead just change the templates from doing
>
> name: '{name}-{branch}-build'
>
> to
>
> name: '{name}-{branch}-build{jobsuffix}'
>
> Then the website job can just set
>
> jobsuffix: website
>
> and everything else can leave it unset
This one I like better :)
We could go one further and use
name: '{name}-{branch}-build{variant}'
for the generic-build-job template and
variant: +website
for this specific job, then change the autotools-mingw-job
template to use
name: '{name}-{branch}-build+mingw'
to align the job names with the project names at the Ansible
level.
We could then even think about dropping autotools-mingw-job
altogether and instead use generic-build-job there as well,
like
- project:
name: libvirt
jobs:
- generic-build-job:
variant: +mingw
command: '{mingw_build}'
where 'mingw_build' would be defined globally.
--
Andrea Bolognani / Red Hat / Virtualization
--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list