My Jenkins box needs to access Stash and Jira through their REST apis. For that I need to store their credentials.
The way I am doing is via the Credentials Parameter, which asks me for a Name, Credential type, Required, Default Value, and a Description.
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.
Next in the Build section I define that a shell should be executed, which is something like
echo $CREDENTIAL_PARAMETER
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.
How can I get the credentials based on the hash using bash?