From d0aaf16925c4523bf47940ac82b6927e4ced34a0 Mon Sep 17 00:00:00 2001 From: CEHCEHCEH <108165818+CEHCEHCEH@users.noreply.github.com> Date: Mon, 18 Jul 2022 16:34:10 +0800 Subject: [PATCH 1/5] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e7ac207..5339328 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { stages { stage('Build') { steps { - sh 'docker build -t darinpope/dp-alpine:latest .' + sh 'docker build -t 123456ceh/dp-alpine:latest .' } } stage('Login') { @@ -19,7 +19,7 @@ pipeline { } stage('Push') { steps { - sh 'docker push darinpope/dp-alpine:latest' + sh 'docker push 123456ceh/dp-alpine:latest' } } } @@ -28,4 +28,4 @@ pipeline { sh 'docker logout' } } -} \ No newline at end of file +} From 4a82cb22b188c5ef25746f5401d4a7d2c7f92e36 Mon Sep 17 00:00:00 2001 From: CEHCEHCEH <108165818+CEHCEHCEH@users.noreply.github.com> Date: Mon, 18 Jul 2022 20:02:20 +0800 Subject: [PATCH 2/5] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5339328..09da7a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { buildDiscarder(logRotator(numToKeepStr: '5')) } environment { - DOCKERHUB_CREDENTIALS = credentials('darinpope-dockerhub') + DOCKERHUB_CREDENTIALS = credentials('dockerhub') } stages { stage('Build') { From 5a41e9bb9192d7bc72560d9ba0f231101efb08fa Mon Sep 17 00:00:00 2001 From: CEHCEHCEH <108165818+CEHCEHCEH@users.noreply.github.com> Date: Mon, 18 Jul 2022 20:24:06 +0800 Subject: [PATCH 3/5] Update Jenkinsfile --- Jenkinsfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 09da7a4..bedef47 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,5 @@ pipeline { - agent { label 'linux' } - options { - buildDiscarder(logRotator(numToKeepStr: '5')) - } + environment { DOCKERHUB_CREDENTIALS = credentials('dockerhub') } From 0502fc670003bf0dd1dcb5eaf12cac8815867ab2 Mon Sep 17 00:00:00 2001 From: CEHCEHCEH <108165818+CEHCEHCEH@users.noreply.github.com> Date: Mon, 18 Jul 2022 20:36:15 +0800 Subject: [PATCH 4/5] Update Jenkinsfile --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bedef47..09da7a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,8 @@ pipeline { - + agent { label 'linux' } + options { + buildDiscarder(logRotator(numToKeepStr: '5')) + } environment { DOCKERHUB_CREDENTIALS = credentials('dockerhub') } From b63fec1865f9a3881183fad2d72e5c9107a82b85 Mon Sep 17 00:00:00 2001 From: CEHCEHCEH <108165818+CEHCEHCEH@users.noreply.github.com> Date: Tue, 19 Jul 2022 20:53:55 +0800 Subject: [PATCH 5/5] Update Jenkinsfile --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 09da7a4..028be60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,6 @@ pipeline { - agent { label 'linux' } - options { - buildDiscarder(logRotator(numToKeepStr: '5')) - } + agent any + environment { DOCKERHUB_CREDENTIALS = credentials('dockerhub') }