useranon
useranon

Reputation: 29514

Mask secret text password variable in Jenkins

I am working on Jenkins. I have added secret text with Username and Password variable. I am accessing the password variable using ${password_var1}. Currently this prints the password as such in the console output. How to mask this Secret text Password variable in the console output.

Upvotes: 1

Views: 2874

Answers (2)

RohitLucky
RohitLucky

Reputation: 31

try using "Inject passwords to the build as environment variables" from Build Environment. It works.

Upvotes: 0

Wilco Greven
Wilco Greven

Reputation: 2115

The Mask Password Plugin can do that.

Upvotes: 2

Related Questions