diff --git a/src/com/sap/piper/Utils.groovy b/src/com/sap/piper/Utils.groovy index 311620536..b3f996626 100644 --- a/src/com/sap/piper/Utils.groovy +++ b/src/com/sap/piper/Utils.groovy @@ -44,11 +44,11 @@ def stashList(script, List stashes) { lock(lockName) { unstash stash.name echo "Stash content: ${name} (include: ${include}, exclude: ${exclude})" - steps.stash name: name, includes: include, exclude: exclude, allowEmpty: true + steps.stash name: name, includes: include, excludes: exclude, allowEmpty: true } } else { echo "Stash content: ${name} (include: ${include}, exclude: ${exclude})" - steps.stash name: name, includes: include, exclude: exclude, allowEmpty: true + steps.stash name: name, includes: include, excludes: exclude, allowEmpty: true } } } diff --git a/vars/slackSendNotification.groovy b/vars/slackSendNotification.groovy index fd09cc067..dee36c696 100644 --- a/vars/slackSendNotification.groovy +++ b/vars/slackSendNotification.groovy @@ -76,7 +76,7 @@ void call(Map parameters = [:]) { Map options = [:] if(config.credentialsId) options.put('tokenCredentialId', config.credentialsId) - for(String entry : STEP_CONFIG_KEYS.minus('credentialsId')) + for(String entry : ['baseUrl','channel','color','message']) if(config.get(entry)) options.put(entry, config.get(entry)) slackSend(options)