1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-05 13:25:19 +02:00

fix: correct step parameters (unknown parameters found) (#1093)

* fix: correct step invocations (WARNING: Unknown parameter(s) found for class)

* fix: correct step invocations (WARNING: Unknown parameter(s) found for class)
This commit is contained in:
Christopher Fenner 2020-01-13 16:28:12 +01:00 committed by GitHub
parent 686235613c
commit 53317222a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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
}
}
}

View File

@ -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)