From aa3243324b619bea2ac8c5902f562d5cbe2d81da Mon Sep 17 00:00:00 2001 From: cankush625 Date: Thu, 28 May 2020 09:55:02 +0530 Subject: [PATCH 1/6] Jenkinsfile modified Signed-off-by: cankush625 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 12a5fac..ddb2d7b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ node { /* This builds the actual image; synonymous to * docker build on the command line */ - app = docker.build("ajeetraina/webpage") + app = docker.build("cankush625/webpage") } stage('Test image') { From 7469c22ea19e9bd996366c7efc9f83264c1acb4e Mon Sep 17 00:00:00 2001 From: cankush625 Date: Thu, 28 May 2020 15:49:13 +0530 Subject: [PATCH 2/6] Jenkinsfile modified Signed-off-by: cankush625 --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ddb2d7b..e778ab9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,11 @@ node { } } + stage('Run image') { + /*Run an image to start services*/ + docker.image("cankush625/webpage").run('-p 80:80') + } + stage('Push image') { /* Finally, we'll push the image with two tags: * First, the incremental build number from Jenkins From a4ef1f89bfa6ac0709eb8bfd37b0e6f257e83b78 Mon Sep 17 00:00:00 2001 From: cankush625 Date: Thu, 28 May 2020 16:08:26 +0530 Subject: [PATCH 3/6] Run image stage added in Jenkinsfile Signed-off-by: cankush625 --- Jenkinsfile | 6 +++--- README.md | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e778ab9..b4730eb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ node { /* This builds the actual image; synonymous to * docker build on the command line */ - app = docker.build("cankush625/webpage") + app = docker.build("ajeetraina/webpage") } stage('Test image') { @@ -24,8 +24,8 @@ node { } stage('Run image') { - /*Run an image to start services*/ - docker.image("cankush625/webpage").run('-p 80:80') + /* Run an image to start services */ + docker.image("ajeetraina/webpage").run('-p 80:80') } stage('Push image') { 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 From 5ff489907a35624037eefb3eb0756f69e27bf5f9 Mon Sep 17 00:00:00 2001 From: cankush625 Date: Mon, 8 Jun 2020 10:21:54 +0530 Subject: [PATCH 4/6] Post section added Signed-off-by: cankush625 --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b4730eb..35e6fca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,4 +38,10 @@ node { app.push("latest") } } + + post { + success { + echo "All stages are successfully build!" + } + } } From ff8eee6191b4e89221f17518f4535990b57c7850 Mon Sep 17 00:00:00 2001 From: cankush625 Date: Mon, 8 Jun 2020 10:24:30 +0530 Subject: [PATCH 5/6] Bug fixed! Signed-off-by: cankush625 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 35e6fca..573f27d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ node { /* This builds the actual image; synonymous to * docker build on the command line */ - app = docker.build("ajeetraina/webpage") + app = docker.build("cankush625/webpage") } stage('Test image') { From c3dc3d654764d1cb1b10f7a541bc1fcf430fffca Mon Sep 17 00:00:00 2001 From: cankush625 Date: Mon, 8 Jun 2020 10:33:30 +0530 Subject: [PATCH 6/6] Fixed Signed-off-by: cankush625 --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 573f27d..35e6fca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ node { /* This builds the actual image; synonymous to * docker build on the command line */ - app = docker.build("cankush625/webpage") + app = docker.build("ajeetraina/webpage") } stage('Test image') {