*** zbr has quit IRC | 06:50 | |
*** zbr has joined #openstack-jjb | 07:16 | |
*** openstackgerrit has quit IRC | 07:18 | |
*** zbr has quit IRC | 08:27 | |
*** zbr has joined #openstack-jjb | 08:36 | |
*** electrofelix has joined #openstack-jjb | 12:36 | |
*** electrofelix has quit IRC | 12:56 | |
*** electrofelix has joined #openstack-jjb | 13:33 | |
*** cvakiitho has joined #openstack-jjb | 14:04 | |
cvakiitho | Hello, just a quick question about jjb, is it possible to somehow extend job-template, or create something like multi-module macro? I'd like to have a template for 3-4 modules - scm/properties/triggers, and have a one section defined inside project. I think it's not possible, but wanted to check :) | 14:07 |
---|---|---|
zxiiro | cvakiitho: not with JJB but there's a way to do that with straight up YAML anchors. | 14:11 |
zxiiro | cvakiitho: check this out https://github.com/lfit/releng-global-jjb/blob/master/jjb/lf-c-cpp-jobs.yaml#L136-L304 | 14:12 |
cvakiitho | oh, interesting | 14:12 |
cvakiitho | thx | 14:12 |
zxiiro | cvakiitho: lf-cmake-stage is a YAML anchor that defines multiple configurations | 14:13 |
zxiiro | cvakiitho: then we declare 2 job-templates that use that anchor, one job template is for Gerrit, and one is for GitHub | 14:13 |
zxiiro | essentially we used anchors to allow us to build a single job that supports multiple platforms via slightly different job-templates | 14:13 |
zxiiro | cvakiitho: a gotcha to watch out for though.... A top level section like "parameters, wrappers, etc..." unfortunately last definition always wins. YAML will not combine multiple declarations of those sections. | 14:14 |
zxiiro | so say you have a parameters sections defined in an anchor and you want to add an additional anchor in the job-template. You will have to completely redefine the whole parameters section. | 14:15 |
cvakiitho | yeah, I don't need merging, just combine different modules, but thx, thats exactly what I need | 14:15 |
zxiiro | cvakiitho: oh and one more downside with anchors is the only work within the same YAML file. you can't use them cross files sadly. | 14:15 |
cvakiitho | :/ | 14:16 |
cvakiitho | better than nothing, but I'm still kinda sad you can just introduce new module definition inside project. | 14:17 |
*** irclogbot_1 has quit IRC | 14:41 | |
*** mnencia has quit IRC | 14:43 | |
*** mnencia has joined #openstack-jjb | 14:43 | |
*** openstackgerrit has joined #openstack-jjb | 14:43 | |
openstackgerrit | Merged jjb/jenkins-job-builder master: Correct dependencies on tox linters https://review.opendev.org/670693 | 14:43 |
*** irclogbot_1 has joined #openstack-jjb | 14:50 | |
openstackgerrit | Merged jjb/jenkins-job-builder master: Add support for rendering jinja template as yaml https://review.opendev.org/670334 | 16:54 |
*** Odd_Bloke has joined #openstack-jjb | 17:04 | |
*** philroche has joined #openstack-jjb | 17:05 | |
*** altlogbot_0 has quit IRC | 17:25 | |
*** irclogbot_1 has quit IRC | 17:26 | |
*** irclogbot_3 has joined #openstack-jjb | 17:28 | |
*** altlogbot_1 has joined #openstack-jjb | 17:29 | |
*** altlogbot_1 has quit IRC | 17:31 | |
*** irclogbot_3 has quit IRC | 17:32 | |
*** irclogbot_2 has joined #openstack-jjb | 17:38 | |
*** altlogbot_0 has joined #openstack-jjb | 17:40 | |
*** electrofelix has quit IRC | 18:31 | |
*** altlogbot_0 has quit IRC | 20:10 | |
*** altlogbot_2 has joined #openstack-jjb | 20:13 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!