忽略缺少的凭据詹金斯 DSL

ignore missing credentials jenkins DSL

如何使用 DSL Groovy 脚本在 ssh-agent 下启用 Ignore missing credential 选项? 我试过使用 ignoreMissingCredentials = true,但没有成功。

好像是:

wrappers {
   sshAgentBuildWrapper {
      ignoreMissing(true)
   }
}

可能就是您要找的东西。