I have a situation where one of my jobs requires a username and password set in the environment variables. I can easily set this up in the job/stage settings, however, the username and password then appear in the job's Console log.
Is there any way to securely set the environment variables, so that they are obscured in the log? I only want people with admin permission to be able to see that username and password.
Comments
3 comments
Hello,
This feature is currently not available. We have plans of adding this soon.
As a workaround, you could consider saving the credentials in a file in your repository and restrict access at the SCM level.
-Santosh
Hi there,
Just seen this post, and wondering whether this feature is already available and where I can find further information.
Regards
Hi Victor,
Yes this is implemented.
Please take a look at the secure variables.
regards
Srikanth
Please sign in to leave a comment.