[英]Obfuscate a password in jenkins freestyle job in section shell script
I have a jenkins job in freestyle mode.我在自由式模式中有一份 jenkins 工作。 In the build step, I add a section "execute shell script".在构建步骤中,我添加了“执行 shell 脚本”部分。 And in this shell section script, I have a command to connect to bitbucket with a user et token.在这个 shell 部分脚本中,我有一个使用用户 et 令牌连接到 bitbucket 的命令。 My issue is I want to obfuscate the token to not allow everyone to see it.我的问题是我想混淆令牌以不允许所有人看到它。 I know that this possible with pipeline but I not find any solution for freestyle job... Anyone have solution for this please?我知道这可以通过管道实现,但我没有找到任何自由式工作的解决方案……请问有人有解决方案吗?
Finally I manage to do it with option "Use secret text(s) or file(s)" available in the job settings最后,我设法使用作业设置中可用的选项“使用秘密文本或文件”来做到这一点
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.