Variables declared as Hidden cannot be sent as parameter
Hi,
I have 2 environment variables, USERNAME and PASSWORD, which would be used in my Build File. Variable "PASSWORD" is hidden. I am trying to invoke an ANT build file from Build Forge. But, I want to use username and password inside the ANT file. But, at the same time, I do not want to disclose the password. I invoke the build file like this: <Something> build.xml -Dpassword=${PASSWORD} -Dusername=${USERNAME} But, since the field "PASSWORD" is declared as hidden, build forge does not pass the value of the PASSWORD. Please let me know how I can achieve this. Thanks Ankit |
2 answers
Hi, Hi, I would recommend to not use the -D properties to pass the variables, but rather use the Ant environment inside your build xml to get at the variables. For example, you could have some code like below.
The ant execution would just be 'ant -f build.xml' . Brent Ulbricht RTC Build Lead |
Hi, Hi, I would recommend to not use the -D properties to pass the variables, but rather use the Ant environment inside your build xml to get at the variables. For example, you could have some code like below.
The ant execution would just be 'ant -f build.xml' . Brent Ulbricht RTC Build Lead Oh cool.. This sounds very simple.. So, it will take the environment variable declared in Build Forge? |
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.