diff --git a/Jenkinsfile b/Jenkinsfile index 6f73a24..89568d0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,7 +13,7 @@ def resolveImageName(env) { pipeline { agent { docker { - image 'alpine/git:2.36.3' + image 'alpine:3.17.3' // Mount docker socket for docker-in-docker args '-v /var/run/docker.sock:/var/run/docker.sock' } @@ -21,6 +21,7 @@ pipeline { stages { stage('prepare') { steps { + sh "apk update && apk add --no-cache git" // Try to get tag name from git repo if it empty. By default this env fills only at tag builds in Jenkins script { if (env.TAG_NAME == null) {