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.
Accepted answer
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.
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.