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

How to use hidden properties in build definition?

Is there any documentation on how to use hidden build properties? The only mention I found says:
You can define a hidden property, whose value is masked in the user interface
But doesn't explain how to do it.  I found that putting "HIDDEN" as the property description will indeed hide it from being shown in the UI, but when I try to access that same property in my Ant script it seems to be scrambled.

0 votes


Accepted answer

Permanent link

In the Build Definition editor, when you create a build property, you can check the hidden option. To access it in the Ant script, you need to pass these build properties as system properties. In the Ant tab of the build definition, add the hidden property to the JVM arguments like -D<ant property>=${hiddenProperty}. When Ant is invoked by JBE, it will assign the actual value to the ant property.

Alejandro Correa selected this answer as the correct answer

0 votes

Comments

Hi, thanks for the quick reply.  Do you know which release this functionality is available in?  I'm using 6.0.3 and don´t see the option to mark a property as hidden.

Since there is no checkbox to mark it as hidden in the 6.0.3 client I am using, I put HIDDEN in the description and passed it as a JVM argument as you suggested, but the value is still scrambled when used in the Ant script.

Hidden property is available in 6.0.4. Putting the HIDDEN text in the description is used with Build Forge integration, not JBE.

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
× 12,029
× 562
× 1

Question asked: Nov 02 '17, 9:29 p.m.

Question was seen: 2,081 times

Last updated: Nov 06 '17, 11:06 a.m.

Confirmation Cancel Confirm