Skip to content

Commit

Permalink
pipelineConfig: test scmConfigs for bad syntax or not being present a…
Browse files Browse the repository at this point in the history
…nd apply the defaults

Signed-off-by: Samuel Bernardo <[email protected]>
  • Loading branch information
samuelbernardolip committed Dec 4, 2020
1 parent 2fd7241 commit 4e04098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vars/pipelineConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def call(
Map scmConfigsDefault = [
localBranch: false
]
Map scmConfigs = configs ? scmConfigsDefault + configs?.scmConfigs :
scmConfigsDefault
Map scmConfigs = configs?.scmConfigs ? scmConfigsDefault + configs?.scmConfigs :
scmConfigsDefault

Map configsDefault = [
configFile: './.sqa/config.yml',
Expand Down

0 comments on commit 4e04098

Please sign in to comment.