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
}