From c3530c8b81f595cd7ac2b4a44589e72b38e94e98 Mon Sep 17 00:00:00 2001 From: Georgios Jason Efstathiou Date: Sun, 22 Dec 2024 20:27:37 +0100 Subject: [PATCH] try this --- Jenkinsfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 51383d6..a42037e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,12 @@ pipeline { agent any - tools { - dockerTool 'Docker' - } + agent { + docker { + image 'node:16-alpine' // Use an image with Node.js and Docker installed + args '-u root -v /var/run/docker.sock:/var/run/docker.sock' // Mount Docker socket + } + } environment { REGISTRY = "docker-registry.service.consul"