From e559426d2e6b3b6f2faf1e9ae4493131c52534f5 Mon Sep 17 00:00:00 2001 From: amorozov Date: Tue, 4 Apr 2023 19:56:17 +0300 Subject: [PATCH] fix: fixed agent docker installation --- Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f4cb3c..15bf8d9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,19 +11,16 @@ pipeline { docker { image 'alpine:3.17.3' // Mount docker socket for docker-in-docker - args '-v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/local/bin/docker' + args '-v /var/run/docker.sock:/var/run/docker.sock' } } stages { stage('prepare') { steps { - sh 'echo ${PATH}' - sh 'ls -la /usr/local/bin | grep docker' - sh "which docker" - sh 'chmod +x /usr/local/bin/docker' sh """ apk update && \ - apk add --no-cache git + apk add --no-cache git && \ + apk add docker-cli """ script { env.IMAGE_BASE_NAME = "jdk14-alpine"