0
Can Jenkins Slave是否拥有自己的凭证,可以通过管道步骤读取从属节点上运行的作业的凭证?如果是,如何设置?Can Jenkins Slave拥有自己的私人凭证
我的管道步骤需要与Salesforce沙箱连接,并且无法将凭证添加到Jenkins Master(因为Jenkins组是多租户设置并且不允许添加自定义项目特定的凭据)。
stage ('Validate') {
withCredentials([
usernamePassword(credentialsId: params.SANDBOX, passwordVariable: 'sfPassword', usernameVariable: 'sfUsername')
]) {
// use salesforce ant libraries to validate the code
// in a sandbox using the above credentials
}