getPassword

The getPassword task decrypts a previously encrypted password value.

The following table describes getPassword attributes.

Attribute Description Required

password

Previously encrypted password value. Refer to setPassword for more information.

Yes

property

The name of the ant property in which to return the workspace name.

Yes

verbose

Specifies more message output. The default is false.

No

Note: The setPassword/getPassword tasks are used to secure passwords used by the build.

Example

Substitute TSO userid and password before submitting a job

<!-- Archive init -->
<im:getPassword password="${jcl.password}" prperty="pwd"/>

<!-- Archieve APAR -->
<copy file="${archiveJcl}" tofile="${dir.work}/ArchiveApar.jcl" overwrite="true">
	<filterchain>
		<replacetokens>
			<token key="USERID" 	value="${jcl.userid}"/>
			<token key="PASSWORD"   value="${pwd}"/>
			<token key="APAR"	   value="${ims.build.ant.aparName}"/>
		</replacetokens>
	</filterchan>
</copy>

<!-- Obscure the password -->
<ac:var name="pwd" value="********"/>	 		

video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki