From ff094a6d2efa2ba681b0740c16bcf7bb8273a6ae Mon Sep 17 00:00:00 2001 From: K Siva Prasad Reddy Date: Fri, 12 Jan 2024 17:48:34 +0530 Subject: [PATCH] Add docker host env var --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 06f5452..11e68b9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,11 +3,14 @@ pipeline { triggers { pollSCM 'H/2 * * * *' } // poll every 2 mins + environment { + DOCKER_HOST = 'tcp://docker:2376' + } + stages { stage('Build') { steps { sh 'java -version' - sh "echo $DOCKER_HOST" sh 'docker version' sh './mvnw --ntp verify' }