From 24cec168a6d1702b421ee8a8e05e7c9634459516 Mon Sep 17 00:00:00 2001 From: Pospolita Nikita Date: Fri, 23 Apr 2021 12:55:41 +0300 Subject: [PATCH 1/3] Update pipeJavaLib.groovy --- jenkins_lib/pipeJavaLib.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins_lib/pipeJavaLib.groovy b/jenkins_lib/pipeJavaLib.groovy index 53d8462..623c9a5 100644 --- a/jenkins_lib/pipeJavaLib.groovy +++ b/jenkins_lib/pipeJavaLib.groovy @@ -14,7 +14,7 @@ def call(String buildImageTag, String mvnArgs = "") { runStage('Execute build container') { withMaven() { buildContainer.inside() { - if (env.BRANCH_NAME == 'master') { + if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME.startsWith('epic')) { withGPG() { sh 'mvn deploy --batch-mode --settings $SETTINGS_XML ' + "${mvnArgs}" + ' -Dgpg.keyname="$GPG_KEYID" -Dgpg.passphrase="$GPG_PASSPHRASE" ' From 86456a5ae5b0b64e215dc3f6350b03656b25e755 Mon Sep 17 00:00:00 2001 From: Ivan Panteleev Date: Thu, 20 May 2021 16:30:43 +0300 Subject: [PATCH 2/3] Update pipeJavaLib.groovy --- jenkins_lib/pipeJavaLib.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins_lib/pipeJavaLib.groovy b/jenkins_lib/pipeJavaLib.groovy index 623c9a5..2a0b362 100644 --- a/jenkins_lib/pipeJavaLib.groovy +++ b/jenkins_lib/pipeJavaLib.groovy @@ -13,7 +13,7 @@ def call(String buildImageTag, String mvnArgs = "") { runStage('Execute build container') { withMaven() { - buildContainer.inside() { + buildContainer.inside().withRun('-u 1010:200') { if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME.startsWith('epic')) { withGPG() { sh 'mvn deploy --batch-mode --settings $SETTINGS_XML ' + "${mvnArgs}" + From f52865c631cf20d4ac79bf2f935e08f318655f58 Mon Sep 17 00:00:00 2001 From: Ivan Panteleev Date: Thu, 20 May 2021 16:34:17 +0300 Subject: [PATCH 3/3] Update pipeJavaLib.groovy --- jenkins_lib/pipeJavaLib.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins_lib/pipeJavaLib.groovy b/jenkins_lib/pipeJavaLib.groovy index 2a0b362..623c9a5 100644 --- a/jenkins_lib/pipeJavaLib.groovy +++ b/jenkins_lib/pipeJavaLib.groovy @@ -13,7 +13,7 @@ def call(String buildImageTag, String mvnArgs = "") { runStage('Execute build container') { withMaven() { - buildContainer.inside().withRun('-u 1010:200') { + buildContainer.inside() { if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME.startsWith('epic')) { withGPG() { sh 'mvn deploy --batch-mode --settings $SETTINGS_XML ' + "${mvnArgs}" +