Jenkins plugin: Properties of the build replace "." with "_"
Hi.
We are testing changing our build process from jbe to jenkins. One of the issues we are having is that, all the build properties defined in the build definition modify the name of the property, replacing all dots for underscore.
For example, the property:
this.is.an.example=randomValue
is converted to this variable in the jenkins job
this_is_an_example=randomValue
(In the JBE, the name stays the same).
I was wondering why this behavior, since it is not consistent between the two types of build engines.
Thanks.
One answer
Jenkins does not allow property names with dots to be expanded. We added the replacement logic so accommodate this. The JBE has no such limit on property names so that is why the behavior difference.
~Spencer
~Spencer