From 6fcf35a07f179ee2cb8411e4ee57ae514c5cb05a Mon Sep 17 00:00:00 2001 From: amorozov Date: Thu, 30 Mar 2023 19:07:51 +0300 Subject: [PATCH] chore: changed Jenkins agent base image --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {