Skip to content

Commit

Permalink
ci: use apm-ci vault configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Mar 16, 2022
1 parent 86ddc6d commit beed8c1
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -615,16 +615,8 @@ pipeline {
credentialsId: "${JOB_GCS_CREDENTIALS}",
localDirectory: "${BASE_DIR}/build/distributions")
dir("${BASE_DIR}") {
// Read from vault and prepare/mask the password with the vault secret/role to
// interact with by the release manager process.
// withSecretVault signature uses user_* and pass_* , those names are a bit misleading
// but there is no way to change the signaure since it is already used.
withSecretVault(secret: 'secret/apm-team/ci/release-manager-snapshot',
user_key: 'VAULT_ROLE_ID', user_var_name: 'role_id',
pass_key: 'VAULT_SECRET_ID', pass_var_name: 'secret_id'){
withEnvMask(vars: [ [var: 'VAULT_ROLE_ID', password: env.role_id], [var: 'VAULT_SECRET_ID', password: env.secret_id]]) {
sh(label: 'release-manager.sh', script: ".ci/scripts/release-manager.sh")
}
getVaultSecret.readSecretWrapper {
sh(label: 'release-manager.sh', script: '.ci/scripts/release-manager.sh')
}
}
}
Expand Down

0 comments on commit beed8c1

Please sign in to comment.