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"