(已解决):使用groovy文件在jenkins管道中解决ios解锁密钥链问题

(已解决):使用groovy文件在jenkins管道中解决ios解锁密钥链问题,ios,shell,jenkins-groovy,Ios,Shell,Jenkins Groovy,上下文 在该公司,他们从blueocean/jenkins运行许多构建&他们使用iOS和MacOS 许多构建失败,错误如下 错误消息: Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure. Affected argument(s) used the following variable(s): [sshPassword] See http

上下文

在该公司,他们从blueocean/jenkins运行许多构建&他们使用iOS和MacOS

许多构建失败,错误如下

错误消息:

    Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.

Affected argument(s) used the following variable(s): [sshPassword]

See https://jenkins.io/redirect/groovy-string-interpolation for details.

+ security unlock-keychain -p **** login.keychain

Sending interrupt signal to process
因此,我转到了文档链接,但它并没有真正起到帮助或/或我误解了它

我在groovy文件中找到了太多的行

security unlock-keychain -p ${sshPassword} login.keychain
security set-keychain-settings -lut 1800 login.keychain
                                                                                                              
对我来说,这看起来不错,但这个错误使jenkins的作业在不同的版本上崩溃,但总是在这个错误发生时崩溃,所以我想这是根本原因


如何修复它?

好的,实际上,它是在弹出GUI窗口的安装程序上运行的。 所以它需要派一个人到现场,回答这个问题

为了确保机器确实正常,他还重新启动了它