Friday, 2018-05-04

*** ssbarnea_ has quit IRC00:28
*** abelur has quit IRC05:15
*** abelur has joined #openstack-jjb05:15
*** hashar has joined #openstack-jjb06:28
*** ssbarnea_ has joined #openstack-jjb07:25
*** ssbarnea_ has quit IRC07:59
*** ssbarnea_ has joined #openstack-jjb09:18
ssbarneais friday so new jjb/python jenkins releases should be possible, if someone asks for them. just ping me if you need/want one, otherwise i will skip.10:18
*** ssbarnea_ has quit IRC12:16
*** electrofelix has quit IRC12:26
*** ssbarnea_ has joined #openstack-jjb12:33
*** ssbarnea_ has quit IRC12:49
*** ssbarnea_ has joined #openstack-jjb12:57
ssbarneazaro__: are you here?13:24
ssbarneai am trying to find a way to add an extra env var in jjb but not inside the template, i just want to add it inside the project or job definition (that are using a template that already have some parameters)13:25
zxiiroI'll do a JJB release today13:50
ssbarneazxiiro: please read https://stackoverflow.com/questions/50177308/how-to-override-environment-variables-in-jenkins-job-builder-at-job-level -- 5 beers if you find a way to address this question.14:28
zxiirossbarnea: oh we do this regularly Although you cannot use "- defaults:" that you have set up at the top because it has the absolute lowest priority in JJB (a setting which I personally don't agree with) so the job-template always overrides it, but you can override a job-template from the "project" section.14:32
zxiirossbarnea: gimme a few mintues I'll reply to it on SO14:32
ssbarneazxiiro: super, i need to switch location now, so I will be out for 20 mins. I am eager to find a solution for this problem14:33
ssbarneai hope I described it well14:33
ssbarneapeople are writing project/jobs and I want to allow them to add/override env-vars from there, without having to touch our templates.14:34
zxiirossbarnea: yep. if you ever want inspiration take a look at t his repo: https://github.com/lfit/releng-global-jjb14:35
zxiirossbarnea: it's purely a jjb job-template library repo that we load as submodules14:35
ssbarneai will look14:35
*** ssbarnea_ has quit IRC14:35
zxiirothe jobs are designed to allow folks to override default settings at the project level14:35
*** ssbarnea_ has joined #openstack-jjb14:51
zxiirossbarnea: ok I posted my reply. let me know if anything is confusing15:04
ssbarneawell, this translates to two things: a) I need to add JJB variable for each environment variable I want to be able to override. b) i need to have a value for each variable that can be overriden -- shortly is impossible to add FOO=xxx for a job that does not have it in the template.15:10
ssbarneadefault value is not really the same as "omit" from ansible.15:11
ssbarneaalso I do have lots of templates, so adding vars on all of them will be bit tricky.15:12
ssbarneai am going to try to try using yaml anchors...15:14
zxiirossbarnea: oh yeah I forgot to metnion yaml anchors in my answer15:16
zxiirowe use that trick a lot too15:16
zxiirosadly though anchors does not transverse files :(15:16
zxiiroI don't see a better way to manage this today other than to have a set of well defined variables and hope your template creators follow the guidelines when they develop the templates.15:17
zxiiroIMO it would be nice if "defaults" had a higher precedence than job-templates15:17
zxiirobut if we change that it will break some use cases. eletrofelix and I discussed adding a feature to let the user decide on the precedence ordering in their JJB.15:18
ssbarneadamn, so no solution so far.15:26
zxiirossbarnea: are you familiar with reno for release notes generation? https://docs.openstack.org/reno/latest/15:31
ssbarneanot at all15:31
ssbarneanever used15:31
zxiirolooking into using it for some of my own projects. Trying to find some kind of setup that will make release notes easy  to manage at the patch level rather than after that fact and you try to remember what everyone added every release.15:32
ssbarneai had an attempt to use such a tool at some point and it only caused me more pain. i ended up considering the ugly changelog == release notes15:32
zxiiroyeah that's one of my concerns. I needs to give me less work. not more15:35
zxiiroit*15:35
*** hashar is now known as hasharAway15:36
*** openstackgerrit has joined #openstack-jjb17:44
openstackgerritThanh Ha proposed openstack-infra/jenkins-job-builder master: Document practical use case for variable defaults  https://review.openstack.org/56637217:44
openstackgerritThierry CATRAIN proposed openstack-infra/jenkins-job-builder master: Enhances configuration for multibranch project  https://review.openstack.org/56639719:54
*** hasharAway is now known as hashar20:36
openstackgerritThierry CATRAIN proposed openstack-infra/jenkins-job-builder master: Blueocean configuration for multibranch project  https://review.openstack.org/56640420:50
*** hashar has quit IRC21:42
*** ssbarnea_ has quit IRC22:43

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