Skip to content

Commit 82c56eb

Browse files
authored
Update Jenkinsfile
1 parent 51950bd commit 82c56eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java-tomcat-sample-docker/Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pipeline {
3030
catchError (buildResult:'SUCCESS', stageResult: 'FAILURE') {
3131
sh "docker images"
3232
sh "docker container ls"
33-
sh "docker container stop bipin115/samplewebapp"
34-
sh "docker rm -f bipin115/samplewebapp"
33+
sh "docker container stop samplewebapp"
34+
sh "docker rm -f samplewebapp"
3535
sh "docker image rm -f bipin115/samplewebapp"
3636
}
3737
}
@@ -56,7 +56,7 @@ pipeline {
5656
stage('Run Docker container') {
5757

5858
steps {
59-
sh "docker run --name bipin115/samplewebapp -d -p 9090:8080 bipin115/samplewebapp"
59+
sh "docker run --name samplewebapp -d -p 9090:8080 bipin115/samplewebapp"
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)