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.