From 9d980ce9fcfdda94672cd9666a65f03cb667d333 Mon Sep 17 00:00:00 2001 From: Mehdi Pasha <135350614+mehdidevops2030@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:21:23 +0300 Subject: [PATCH 1/3] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 83f80749..290f9536 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent { label 'linux' } + agent any options { buildDiscarder(logRotator(numToKeepStr: '5')) } @@ -41,4 +41,4 @@ pipeline { sh 'docker logout' } } -} \ No newline at end of file +} From 1d879e84a99f302f010f6c093f4fa76a2e9d5306 Mon Sep 17 00:00:00 2001 From: Mehdi Pasha <135350614+mehdidevops2030@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:34:46 +0300 Subject: [PATCH 2/3] Update Jenkinsfile --- Jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 290f9536..0e06ad72 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,9 +36,5 @@ pipeline { } } } - post { - always { - sh 'docker logout' - } - } + } From 4ab1b08b69c6ded50bc2586e187945b1f921ee97 Mon Sep 17 00:00:00 2001 From: Mehdi Pasha <135350614+mehdidevops2030@users.noreply.github.com> Date: Thu, 3 Aug 2023 11:38:15 +0300 Subject: [PATCH 3/3] Update Jenkinsfile --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0e06ad72..290f9536 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,5 +36,9 @@ pipeline { } } } - + post { + always { + sh 'docker logout' + } + } }