Skip to content

Commit

Permalink
pipelineConfig: test config for bad syntax and apply the defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Bernardo <[email protected]>
  • Loading branch information
samuelbernardolip committed Dec 4, 2020
1 parent 64d3b93 commit 2fd7241
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vars/pipelineConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def call(
Map scmConfigsDefault = [
localBranch: false
]
Map scmConfigs = scmConfigsDefault + configs?.scmConfigs
Map scmConfigs = configs ? scmConfigsDefault + configs?.scmConfigs :
scmConfigsDefault

Map configsDefault = [
configFile: './.sqa/config.yml',
Expand All @@ -35,7 +36,8 @@ def call(
validatorDockerImage: 'eoscsynergy/jpl-validator:1.1.0',
scmConfigs: scmConfigs,
]
configs = configsDefault + configs
configs = configs ? configsDefault + configs :
configsDefault

def scmCheckout = { ->
if (configs?.baseRepository) {
Expand Down

0 comments on commit 2fd7241

Please sign in to comment.