Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



One answer

Permanent link
 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

2 votes

Comments
Thanks for the quick reply.  I have seen that jenkins use all the time underscores, so I suppose it makes sense. On the other hand, by adding a parameter to the build or using EnvInject plugin I can successfully create variable names with dots. I just created a simple job that just run "printenv" and I can see the variables just fine. 

Yes, there are certainly ways around the limitation in Jenkins, but we assume no other plugins are installed. ~Spencer 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 151

Question asked: Aug 26 '13, 11:11 a.m.

Question was seen: 9,962 times

Last updated: Aug 26 '13, 3:48 p.m.

Confirmation Cancel Confirm