diff --git a/Jenkinsfile b/Jenkinsfile index 12a5fac..35e6fca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,11 @@ node { } } + stage('Run image') { + /* Run an image to start services */ + docker.image("ajeetraina/webpage").run('-p 80:80') + } + stage('Push image') { /* Finally, we'll push the image with two tags: * First, the incremental build number from Jenkins @@ -33,4 +38,10 @@ node { app.push("latest") } } + + post { + success { + echo "All stages are successfully build!" + } + } } diff --git a/README.md b/README.md index c35affe..e0da26e 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,11 @@ node { } } + stage('Run image') { + /* Run an image to start services */ + docker.image("ajeetraina/webpage").run('-p 80:80') + } + stage('Push image') { /* Finally, we'll push the image with two tags: * First, the incremental build number from Jenkins