Skip to content

Commit

Permalink
get boolean value for disabledDeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mareknovotny committed Aug 5, 2024
1 parent 19990bf commit ca518d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dsl/seed/jenkinsfiles/Jenkinsfile.buildchain
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?: ''
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ca518d5

Please sign in to comment.