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

What is the best way to store a password for a script?

I have a script that requires userid and password to execute. What is the best way to store and retrieve it in BF?

0 votes



3 answers

Permanent link
I have a script that requires userid and password to execute. What is the best way to store and retrieve it in BF?


You could store the userid as a normal variable and the password as a hidden variable.

To set a hidden variable you must select the "Assign Hidden" option in the Action dropdown list

0 votes


Permanent link
I have a script that requires userid and password to execute. What is the best way to store and retrieve it in BF?


Hi John,

When I have a script to run that requires a password, I typically create an environment variable with the 'Action' set to 'Assign Hidden' and 'On Project' set to 'Suppress Display'.

You job log will have a few statements indicating that a hidden variable was detected and prevent it from being displayed in the Build Forge logs.

201	02/17/11 07:00AM	EXEC	 Performing variable expansion on command line

202 02/17/11 07:00AM EXEC Variable expansion skipped: Hidden Variable (SCRIPT_PASSWORD) detected


Brent Ulbricht
Developer/Lead - RTC Build

0 votes


Permanent link
Thanks guys. .This works fine.. I will try to use this technique to store passwords.

0 votes

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

Question asked: Feb 15 '11, 8:21 a.m.

Question was seen: 4,774 times

Last updated: Feb 15 '11, 8:21 a.m.

Confirmation Cancel Confirm