简体   繁体   English

在 shell 脚本部分的 jenkins 自由式作业中混淆密码

[英]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.

相关问题 Jenkins中带密码的Shell脚本 - Shell script with password in Jenkins 如何混淆shell脚本? - How to obfuscate a shell script? 如何编写 shell 脚本来检查 URL 是否已启动并将其发布在 jenkins 自由式项目中的电子邮件中 - How to write shell script to Check URL is up and post it in Email in jenkins freestyle project Jenkins将Shell脚本变量传递到下游作业 - Jenkins Passing a Shell Script Variable into a Downstream Job 有没有办法在 shell 脚本中列出 Jenkins 的所有作业,该脚本将作为 Jenkins 作业运行 - Is there a way to list all jobs of Jenkins in a shell script that will be run as a Jenkins job Jenkins Shell脚本未收到作业参数的新值 - Jenkins shell script does not receive the new value of a job parameter 如何使 Jenkins 找到作业中指定的 shell 脚本 - How to make Jenkins find the shell script which is specified in the job 在詹金斯工作中的shell脚本中的if子句中出现错误 - Getting error in if clause in shell script inside jenkins job 如何安全地在Jenkins shell脚本中传递密码? - How to pass password in Jenkins shell script in safe manner? Shell脚本接受“詹金斯工作名称”并触发该工作形式命令行(工作名称和参数数量不同) - Shell script to accept “jenkins job name” and triggers that job form commandline(jobs differs in the name and count of parameters)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM