Accessing credentials in Jenkins with the Credentials Parameter plugin : <p>My Jenkins box needs to access Stash and Jira through their REST apis. For that I need to store their credentials.</p>

<p>The way I am doing is via the Credentials Parameter, which asks me for a Name, Credential type, Required, Default Value, and a Description.</p>

<p>I define a Name as CREDENTIAL_PARAMETER, in the type I set it as "Username with password", and then I pick one credential from the list in the Default Value.</p>

<p>Next in the Build section I define that a shell should be executed, which is something like</p>

<pre><code>echo $CREDENTIAL_PARAMETER
</code></pre>

<p>I was expecting to get something like "username:password" as the CREDENTIAL_PARAMETER. However, I get a hash that I think is how the username and password can be retrieved.</p>

<p>How can I get the credentials based on the hash using bash?</p>
