diff --git a/.ci/buildDockerImages.groovy b/.ci/buildDockerImages.groovy index df042e5e9..84b82bd4e 100644 --- a/.ci/buildDockerImages.groovy +++ b/.ci/buildDockerImages.groovy @@ -323,12 +323,23 @@ pipeline { steps { deleteDir() dockerLoginElasticRegistry() + dir("opbot-latest"){ + script { + def creds = getVaultSecret('secret/k8s/elastic-apps/apm/opbot-google-creds') + writeFile(file: 'credentials.json', text: creds.data.value) + } + } buildDockerImage( repo: 'https://github.com/elastic/opbot.git', tag: "opbot", version: "latest", push: true) } + post { + cleanup { + deleteDir() + } + } } } post {