Monday, 2019-07-15

*** zbr has quit IRC06:50
*** zbr has joined #openstack-jjb07:16
*** openstackgerrit has quit IRC07:18
*** zbr has quit IRC08:27
*** zbr has joined #openstack-jjb08:36
*** electrofelix has joined #openstack-jjb12:36
*** electrofelix has quit IRC12:56
*** electrofelix has joined #openstack-jjb13:33
*** cvakiitho has joined #openstack-jjb14:04
cvakiithoHello, 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
zxiirocvakiitho: not with JJB but there's a way to do that with straight up YAML anchors.14:11
zxiirocvakiitho: check this out https://github.com/lfit/releng-global-jjb/blob/master/jjb/lf-c-cpp-jobs.yaml#L136-L30414:12
cvakiithooh, interesting14:12
cvakiithothx14:12
zxiirocvakiitho: lf-cmake-stage is a YAML anchor that defines multiple configurations14:13
zxiirocvakiitho: then we declare 2 job-templates that use that anchor, one job template is for Gerrit, and one is for GitHub14:13
zxiiroessentially we used anchors to allow us to build a single job that supports multiple platforms via slightly different job-templates14:13
zxiirocvakiitho: 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
zxiiroso 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
cvakiithoyeah, I don't need merging, just combine different modules, but thx, thats exactly what I need14:15
zxiirocvakiitho: 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
cvakiithobetter than nothing, but I'm still kinda sad you can just introduce new module definition inside project.14:17
*** irclogbot_1 has quit IRC14:41
*** mnencia has quit IRC14:43
*** mnencia has joined #openstack-jjb14:43
*** openstackgerrit has joined #openstack-jjb14:43
openstackgerritMerged jjb/jenkins-job-builder master: Correct dependencies on tox linters  https://review.opendev.org/67069314:43
*** irclogbot_1 has joined #openstack-jjb14:50
openstackgerritMerged jjb/jenkins-job-builder master: Add support for rendering jinja template as yaml  https://review.opendev.org/67033416:54
*** Odd_Bloke has joined #openstack-jjb17:04
*** philroche has joined #openstack-jjb17:05
*** altlogbot_0 has quit IRC17:25
*** irclogbot_1 has quit IRC17:26
*** irclogbot_3 has joined #openstack-jjb17:28
*** altlogbot_1 has joined #openstack-jjb17:29
*** altlogbot_1 has quit IRC17:31
*** irclogbot_3 has quit IRC17:32
*** irclogbot_2 has joined #openstack-jjb17:38
*** altlogbot_0 has joined #openstack-jjb17:40
*** electrofelix has quit IRC18:31
*** altlogbot_0 has quit IRC20:10
*** altlogbot_2 has joined #openstack-jjb20:13

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!