Skip to content

Commit

Permalink
Merge pull request #43 from paulissoft/development
Browse files Browse the repository at this point in the history
Update process.groovy
  • Loading branch information
paulissoft authored Jul 28, 2022
2 parents 1130c8d + 1860a88 commit 3e455f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jenkins/libraries/maven/steps/process.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,13 @@ void call(app_env){
}

script {
if (pipelineConfig.scm_url_config != null && pipelineConfig.scm_branch_config != null && pipelineConfig.scm_credentials_config != null) {
if (pipelineConfig.scm_url_config != null && pipelineConfig.scm_branch_config != null) {
dir('config') {
git url: pipelineConfig.scm_url_config, branch: pipelineConfig.scm_branch_config, credentialsId: pipelineConfig.scm_credentials_config
if (pipelineConfig.scm_credentials_config != null) {
git url: pipelineConfig.scm_url_config, branch: pipelineConfig.scm_branch_config, credentialsId: pipelineConfig.scm_credentials_config
} else {
git url: pipelineConfig.scm_url_config, branch: pipelineConfig.scm_branch_config
}
}
}
}
Expand Down

0 comments on commit 3e455f0

Please sign in to comment.