chore: changed Jenkins agent base image
Gitea/docker-base-images/jdk14-alpine/pipeline/head There was a failure building this commit Details

fix/fix-agent-installation
amorozov 2023-03-30 19:07:51 +03:00
parent 3d4671a11f
commit 6fcf35a07f
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -13,7 +13,7 @@ def resolveImageName(env) {
pipeline { pipeline {
agent { agent {
docker { docker {
image 'alpine/git:2.36.3' image 'alpine:3.17.3'
// Mount docker socket for docker-in-docker // Mount docker socket for docker-in-docker
args '-v /var/run/docker.sock:/var/run/docker.sock' args '-v /var/run/docker.sock:/var/run/docker.sock'
} }
@ -21,6 +21,7 @@ pipeline {
stages { stages {
stage('prepare') { stage('prepare') {
steps { 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 // Try to get tag name from git repo if it empty. By default this env fills only at tag builds in Jenkins
script { script {
if (env.TAG_NAME == null) { if (env.TAG_NAME == null) {