From 6fdab2cac9d6dd2cd9a2e72d65913b96bdd771f8 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Thu, 8 Oct 2020 08:24:23 +0530 Subject: [PATCH 01/33] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ce61da1..988b11a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ node { stage('Build image') { /* This builds the actual image */ - app = docker.build("anandr72/nodeapp") + app = docker.build("ansari02/nodeapp") } stage('Test image') { @@ -24,7 +24,7 @@ node { /* You would need to first register with DockerHub before you can push images to your account */ - docker.withRegistry('https://registry.hub.docker.com', 'docker-hub') { + docker.withRegistry('https://registry.hub.docker.com', 'ansari02') { app.push("${env.BUILD_NUMBER}") app.push("latest") } From 1f5a62346706cf566a595854ff6406193143bff5 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Thu, 8 Oct 2020 08:39:44 +0530 Subject: [PATCH 02/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 988b11a..968e853 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ node { stage('Clone repository') { /* Cloning the Repository to our Workspace */ - checkout scm + checkout patch-1 } stage('Build image') { From d501a0c17a0ef33c72fabcd0fce7427b5ed62a82 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Thu, 8 Oct 2020 18:31:25 +0530 Subject: [PATCH 03/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 968e853..10b7663 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ node { stage('Clone repository') { /* Cloning the Repository to our Workspace */ - checkout patch-1 + git branch: 'patch-1' } stage('Build image') { From fffdc73e496f7b42c1de20f67e91adb9fc72a4f9 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Thu, 8 Oct 2020 18:50:13 +0530 Subject: [PATCH 04/33] Update Jenkinsfile --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 10b7663..d0a1666 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,13 +4,15 @@ node { stage('Clone repository') { /* Cloning the Repository to our Workspace */ - git branch: 'patch-1' + git branch: 'patch-1', credentialsId: 'irfanansari568', url: 'git@github.com:irfanansari568/NodeApp.git' + + } stage('Build image') { /* This builds the actual image */ - app = docker.build("ansari02/nodeapp") + app = docker.build("irfanansari568/NodeApp") } stage('Test image') { From 7d8ea441518243d4a3787e273da9e40a9d84e028 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Thu, 8 Oct 2020 18:52:52 +0530 Subject: [PATCH 05/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d0a1666..c1d7457 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ node { stage('Clone repository') { /* Cloning the Repository to our Workspace */ - git branch: 'patch-1', credentialsId: 'irfanansari568', url: 'git@github.com:irfanansari568/NodeApp.git' + git branch: 'patch-1', credentialsId: 'irfanansari568', url: 'https://github.com/irfanansari568/NodeApp.git' } From b3086fc948c98564b007d87f1264333552b3a604 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Thu, 8 Oct 2020 19:07:28 +0530 Subject: [PATCH 06/33] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c1d7457..0f760e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ node { stage('Clone repository') { /* Cloning the Repository to our Workspace */ - git branch: 'patch-1', credentialsId: 'irfanansari568', url: 'https://github.com/irfanansari568/NodeApp.git' + git branch: 'patch-1', credentialsId: 'irfanansari568', url: 'https://github.com/irfanansari568/nodeapp.git' } @@ -12,7 +12,7 @@ node { stage('Build image') { /* This builds the actual image */ - app = docker.build("irfanansari568/NodeApp") + app = docker.build("irfanansari568/nodeapp") } stage('Test image') { From 60d56da152cb88366771de08e770f24d32ce626e Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Thu, 8 Oct 2020 21:13:51 +0530 Subject: [PATCH 07/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0f760e1..1909f7d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ node { stage('Clone repository') { /* Cloning the Repository to our Workspace */ - git branch: 'patch-1', credentialsId: 'irfanansari568', url: 'https://github.com/irfanansari568/nodeapp.git' + git branch: 'patch-1', url: 'https://github.com/irfanansari568/nodeapp.git' } From 4b41398a72534c20ae993150121c26d54bbd390c Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:15:08 +0530 Subject: [PATCH 08/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1909f7d..12d35f3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ node { /* You would need to first register with DockerHub before you can push images to your account */ - docker.withRegistry('https://registry.hub.docker.com', 'ansari02') { + docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { app.push("${env.BUILD_NUMBER}") app.push("latest") } From 354bbaede1af0c8b2c363a5e5ffffa0428a807bd Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:26:08 +0530 Subject: [PATCH 09/33] Update Jenkinsfile --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 12d35f3..a2308bd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,8 +27,11 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { - app.push("${env.BUILD_NUMBER}") - app.push("latest") + def customImage = docker.build("my-image:${env.BUILD_ID}") + + /* Push the container to the custom Registry */ + customImage.push("${env.BUILD_NUMBER}") + } echo "Trying to Push Docker Build to DockerHub" } From f613de21571bf98d46b09b4d42290f08d54a5afa Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:37:27 +0530 Subject: [PATCH 10/33] Update Jenkinsfile From 24648ee4c406b433df5441a84789414880ace63d Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:43:59 +0530 Subject: [PATCH 11/33] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a2308bd..5f2a527 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,8 +26,8 @@ node { /* You would need to first register with DockerHub before you can push images to your account */ - docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { - def customImage = docker.build("my-image:${env.BUILD_ID}") + docker.withRegistry('https://registry.hub.docker.com', 'docker-hub') { + def customImage = docker.build(${env.BUILD_ID}") /* Push the container to the custom Registry */ customImage.push("${env.BUILD_NUMBER}") From ba13c142a4a541a8cc8bef22d478382a3ca3a72e Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:46:22 +0530 Subject: [PATCH 12/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5f2a527..1e49aba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,7 +30,7 @@ node { def customImage = docker.build(${env.BUILD_ID}") /* Push the container to the custom Registry */ - customImage.push("${env.BUILD_NUMBER}") + customImage.push("${env.BUILD_NUMBER}) } echo "Trying to Push Docker Build to DockerHub" From 91e72c20b81c1a11a15a038d33d7e1824e716520 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:47:24 +0530 Subject: [PATCH 13/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e49aba..6f35cdb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,7 +30,7 @@ node { def customImage = docker.build(${env.BUILD_ID}") /* Push the container to the custom Registry */ - customImage.push("${env.BUILD_NUMBER}) + customImage.push(${env.BUILD_NUMBER}) } echo "Trying to Push Docker Build to DockerHub" From 52bfa3b0ba7042a7c9b95957700b21a0881a65ff Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:50:51 +0530 Subject: [PATCH 14/33] Update Jenkinsfile --- Jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f35cdb..b66d996 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,11 +27,7 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'docker-hub') { - def customImage = docker.build(${env.BUILD_ID}") - - /* Push the container to the custom Registry */ - customImage.push(${env.BUILD_NUMBER}) - + dockerImage.push() } echo "Trying to Push Docker Build to DockerHub" } From d26cd90c2bf52b7c09f6c3470da446db13e55ae6 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:51:35 +0530 Subject: [PATCH 15/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index b66d996..36d3e27 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ node { /* You would need to first register with DockerHub before you can push images to your account */ - docker.withRegistry('https://registry.hub.docker.com', 'docker-hub') { + docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { dockerImage.push() } echo "Trying to Push Docker Build to DockerHub" From 73343d35198889328f90ff7128a2b833caca5057 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:53:03 +0530 Subject: [PATCH 16/33] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 36d3e27..fb11a8f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,6 +27,7 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { + dockerImage = docker.build registry + ":$BUILD_NUMBER" dockerImage.push() } echo "Trying to Push Docker Build to DockerHub" From 6e1d797c169109ad40b4f87c1d5ac107a508d4a5 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:55:11 +0530 Subject: [PATCH 17/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fb11a8f..a223308 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ node { /* You would need to first register with DockerHub before you can push images to your account */ - docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { + docker.withRegistry('https://registry.hub.docker.com', 'Docker_hub') { dockerImage = docker.build registry + ":$BUILD_NUMBER" dockerImage.push() } From 9cfbb03b0c79cc2daaaf53aef2dd6533626365b2 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 00:56:07 +0530 Subject: [PATCH 18/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a223308..fb11a8f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ node { /* You would need to first register with DockerHub before you can push images to your account */ - docker.withRegistry('https://registry.hub.docker.com', 'Docker_hub') { + docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { dockerImage = docker.build registry + ":$BUILD_NUMBER" dockerImage.push() } From 1dfbe7a51143b6d3be44985024adc4ddeab47313 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:00:57 +0530 Subject: [PATCH 19/33] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fb11a8f..bf93a05 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,8 +27,8 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { - dockerImage = docker.build registry + ":$BUILD_NUMBER" - dockerImage.push() + app.push("${env.BUILD_NUMBER}") + app.push("latest") } echo "Trying to Push Docker Build to DockerHub" } From 52766a22846989683d745463c4e5dc1ae6f7ed79 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:02:42 +0530 Subject: [PATCH 20/33] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index bf93a05..ca6eb36 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,6 +27,7 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { + sh 'docker login -u ansari02 -p Dockerhub@1234' app.push("${env.BUILD_NUMBER}") app.push("latest") } From c613f5538702a156f3761e90369e91505ac99593 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:05:03 +0530 Subject: [PATCH 21/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ca6eb36..988df17 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,7 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { - sh 'docker login -u ansari02 -p Dockerhub@1234' + sh 'sudo docker login -u ansari02 -p Dockerhub@1234' app.push("${env.BUILD_NUMBER}") app.push("latest") } From ae4fb5b96150886a4bd9d31cb15948e5664d9aac Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:06:42 +0530 Subject: [PATCH 22/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 988df17..2da9e90 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,7 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { - sh 'sudo docker login -u ansari02 -p Dockerhub@1234' + app.push("${env.BUILD_NUMBER}") app.push("latest") } From 76bd4efffc549aeda82ec0e9fff5dbbbc2648eaf Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:13:30 +0530 Subject: [PATCH 23/33] Update Jenkinsfile --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2da9e90..564100a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,9 +27,8 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { + sh "docker push irfanansari568/nodeappr:${env.BUILD_NUMBER}" - app.push("${env.BUILD_NUMBER}") - app.push("latest") } echo "Trying to Push Docker Build to DockerHub" } From 9b8b0e317e25858b39a80e80fa9f9387758e0541 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:14:23 +0530 Subject: [PATCH 24/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 564100a..2eb6aff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,7 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { - sh "docker push irfanansari568/nodeappr:${env.BUILD_NUMBER}" + sh "docker push irfanansari568/nodeapp:${env.BUILD_NUMBER}" } echo "Trying to Push Docker Build to DockerHub" From e5f1c0ec9ac7f65a21447cf13cc804bc57fcc945 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:15:16 +0530 Subject: [PATCH 25/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2eb6aff..829b5e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,7 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { - sh "docker push irfanansari568/nodeapp:${env.BUILD_NUMBER}" + sh "docker push irfanansari568/nodeapp:latest" } echo "Trying to Push Docker Build to DockerHub" From 2e58c175a431e86beece7df04c81a104fb7ed6a3 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:23:44 +0530 Subject: [PATCH 26/33] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 829b5e1..842a4d6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,8 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { - sh "docker push irfanansari568/nodeapp:latest" + sh "docker login -u ansari02 -p Dockerhub@1234" + sh "docker push irfanansari568/nodeapp" } echo "Trying to Push Docker Build to DockerHub" From f3be005364b6469ba0eca9e91fe341b8bf8e656c Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:24:58 +0530 Subject: [PATCH 27/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 842a4d6..9f29535 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ node { */ docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { sh "docker login -u ansari02 -p Dockerhub@1234" - sh "docker push irfanansari568/nodeapp" + sh "docker push irfanansari568/nodeapp:build" } echo "Trying to Push Docker Build to DockerHub" From 36c31ca82e3a411eea7ec5511fe0581253988be0 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:30:15 +0530 Subject: [PATCH 28/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9f29535..a931c11 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ node { /* You would need to first register with DockerHub before you can push images to your account */ - docker.withRegistry('https://registry.hub.docker.com', 'Docker-hub') { + docker.withRegistry('https://registry-1.docker.io/v2/', 'Docker-hub') { sh "docker login -u ansari02 -p Dockerhub@1234" sh "docker push irfanansari568/nodeapp:build" From 1d068cf9ea192a4650be4aa32ecc4dd443026e59 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:31:17 +0530 Subject: [PATCH 29/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a931c11..3a61a40 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ node { */ docker.withRegistry('https://registry-1.docker.io/v2/', 'Docker-hub') { sh "docker login -u ansari02 -p Dockerhub@1234" - sh "docker push irfanansari568/nodeapp:build" + sh "docker push irfanansari568/nodeapp:latest" } echo "Trying to Push Docker Build to DockerHub" From e9494de8676fbc91f35a2fe5678c8ba6c2dee2a7 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:34:39 +0530 Subject: [PATCH 30/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3a61a40..93062dd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,7 @@ node { You would need to first register with DockerHub before you can push images to your account */ docker.withRegistry('https://registry-1.docker.io/v2/', 'Docker-hub') { - sh "docker login -u ansari02 -p Dockerhub@1234" + sh "docker login docker.io" sh "docker push irfanansari568/nodeapp:latest" } From 8a153556a836bc83848b0682dca3db8110b01a71 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:38:25 +0530 Subject: [PATCH 31/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 93062dd..f42c87a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ node { */ docker.withRegistry('https://registry-1.docker.io/v2/', 'Docker-hub') { sh "docker login docker.io" - sh "docker push irfanansari568/nodeapp:latest" + sh "docker push ansari02/nodeapp:latest" } echo "Trying to Push Docker Build to DockerHub" From 0af3d706bdb476f8043127c94a2d7d97e0b4d206 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 01:41:15 +0530 Subject: [PATCH 32/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f42c87a..1b564b2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ node { */ docker.withRegistry('https://registry-1.docker.io/v2/', 'Docker-hub') { sh "docker login docker.io" - sh "docker push ansari02/nodeapp:latest" + sh "docker push ansari02/nodeapp:${env.BUILD_NUMBER}" } echo "Trying to Push Docker Build to DockerHub" From ca60cf678682de9c080eda65d95246bbe2819b03 Mon Sep 17 00:00:00 2001 From: irfanansari568 Date: Fri, 9 Oct 2020 02:27:28 +0530 Subject: [PATCH 33/33] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1b564b2..f44ef11 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,7 +28,7 @@ node { */ docker.withRegistry('https://registry-1.docker.io/v2/', 'Docker-hub') { sh "docker login docker.io" - sh "docker push ansari02/nodeapp:${env.BUILD_NUMBER}" + sh "docker push ansari02/nodeapp:10" } echo "Trying to Push Docker Build to DockerHub"