简体   繁体   English

Jenkins用户名和密码凭证

[英]Jenkins username with password credentials

Is there a way I can get only the username or the password in a job when I created it by the window: 通过窗口创建作业时,是否可以仅获取作业中的用户名或密码:

在此处输入图片说明

Can I pass just the password value in a job? 我可以仅在作业中传递密码值吗?

You could create a credential that is Secret Text, populate the text with the password, then expose it as an environmental variable via a binding. 您可以创建一个名为“秘密文本”的凭据,用密码填充文本,然后通过绑定将其公开为环境变量。 The Credentials Binding Plugin can do this for you. 凭证绑定插件可以为您完成此任务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM