From ca518d57fee66c605f743f043466b5467b124285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Novotn=C3=BD?= Date: Mon, 5 Aug 2024 15:22:16 +0200 Subject: [PATCH] get boolean value for disabledDeploy --- dsl/seed/jenkinsfiles/Jenkinsfile.buildchain | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain b/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain index 2a02a1f6b..3e391e80f 100644 --- a/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain +++ b/dsl/seed/jenkinsfiles/Jenkinsfile.buildchain @@ -9,7 +9,7 @@ jdkTool = env.BUILD_JDK_TOOL sonarJdkTool = env.SONAR_JDK_TOOL mavenTool = env.BUILD_MAVEN_TOOL -mavenDeployArtifacts = env.ENABLE_DEPLOY +mavenDeployArtifacts = env.ENABLE_DEPLOY.toBoolean() mavenDeployRepository = env.MAVEN_DEPLOY_REPOSITORY ?: '' mavenDeployRepositoryCredsId = env.MAVEN_DEPLOY_REPOSITORY_CREDS_ID ?: '' mavenDeployLocalDir = env.MAVEN_DEPLOY_LOCAL_DIR ?: '' @@ -178,6 +178,7 @@ pipeline { } steps { script { + echo "enviroment property mavenDeployArtifacts: " + mavenDeployArtifacts; // Upload to specific repository with credentials String mavenDeployRepositoryZipUrl = "${mavenDeployRepository.replaceAll('/content/', '/service/local/').replaceFirst('/*$', '')}/content-compressed" maven.uploadLocalArtifacts(mavenDeployRepositoryCredsId, getMavenDeployLocalDir(), mavenDeployRepositoryZipUrl)