Skip to content

Commit

Permalink
Add docker host env var
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaprasadreddy committed Jan 12, 2024
1 parent 6fe0592 commit ff094a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit ff094a6

Please sign in to comment.