Thursday, 2017-12-21

*** caphrim007 has quit IRC01:21
*** caphrim007 has joined #openstack-jjb02:31
*** caphrim007 has quit IRC02:35
*** caphrim007 has joined #openstack-jjb03:03
*** caphrim007 has quit IRC03:03
*** hashar has joined #openstack-jjb07:50
ssbarneazxiiro and fungi : this is totally unrelated to XML because these vars are used only to be expanded inside scripts (groovy or bash) in jjb. I do understand the reasons (mainly YAML parser)09:28
ssbarneaYAML parser convers these to bool and there is no way to declare their type, if they can be defined or not. am I wrong about that?09:29
ssbarneait seems that the only feature of JJB expander is default value for var: {var|value}, there is no advanced functionality like in jinja2.   In jinja2 I could do {% if var %}yes{% else %}nope{ %endif%}.09:31
fungiahh, i get it. so you're not using these values as parameters to configuration of plugins, they're being reconsumed in other yaml?12:18
fungiin that case you're probably just getting bitten by the fact that yaml is merely a data serialization and jjb's expander, as you noted, is not as powerful as a templating engine would be12:19
waynrit would be a big step up if we put a jinja2 parser in front of the yamlparser15:24
waynrs/would/might/15:25
waynrssbarnea: one thing that would help is if you can link us to a pastebin or gist containing the problematic expansion, ie the yaml you give to jjb, the output you get, and the output you expect instead15:32
waynrwhat i'm curious about is why you can't for example set the variable to 'true' rather than true (without single quotes)...shouldn't that result in interpolation of a string value in the reified script?15:35
ssbarneawaynr: because I have >50 people writing job definitions, I cannot control what they all type.15:43
*** hashar is now known as hasharAway16:10
waynris there anywhere you can document valid values for the variable?16:45
*** hasharAway is now known as hashar20:10
*** hashar has quit IRC23:12

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