Skip to content

Commit ec040d9

Browse files
authored
Update Jenkinsfile
updated docker agent section
1 parent 8b49913 commit ec040d9

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pipeline {
2-
agent docker
2+
agent none
33
stages {
44
stage('compile') {
55
steps {
@@ -52,11 +52,15 @@ pipeline {
5252

5353
}
5454
stage('deploy') {
55+
agent {
56+
docker {
57+
image 'dubbaka/webserver'
58+
}
5559
steps {
56-
echo 'deploy'
60+
echo 'deploy'
5761
bat label: '', script: "deploy adapters: [tomcat9(credentialsId: 'tomcat9', path: '', url: 'http://172.17.0.13:8080')], contextPath: 'sampleapp', war: '**/*.war'"
5862
}
5963

6064
}
6165
}
62-
}
66+
}

0 commit comments

Comments
 (0)