*** caphrim007 has quit IRC | 01:21 | |
*** caphrim007 has joined #openstack-jjb | 02:31 | |
*** caphrim007 has quit IRC | 02:35 | |
*** caphrim007 has joined #openstack-jjb | 03:03 | |
*** caphrim007 has quit IRC | 03:03 | |
*** hashar has joined #openstack-jjb | 07:50 | |
ssbarnea | zxiiro 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 |
---|---|---|
ssbarnea | YAML 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 |
ssbarnea | it 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 |
fungi | ahh, 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 |
fungi | in 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 be | 12:19 |
waynr | it would be a big step up if we put a jinja2 parser in front of the yamlparser | 15:24 |
waynr | s/would/might/ | 15:25 |
waynr | ssbarnea: 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 instead | 15:32 |
waynr | what 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 |
ssbarnea | waynr: because I have >50 people writing job definitions, I cannot control what they all type. | 15:43 |
*** hashar is now known as hasharAway | 16:10 | |
waynr | is there anywhere you can document valid values for the variable? | 16:45 |
*** hasharAway is now known as hashar | 20:10 | |
*** hashar has quit IRC | 23:12 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!