mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
Special handling for 'script' parameter
This commit is contained in:
parent
1624001826
commit
5798b0a236
@ -367,6 +367,21 @@ void handleStep(stepName, prepareDefaultValuesStep, gse) {
|
||||
|
||||
def step = [parameters:[:]]
|
||||
|
||||
//
|
||||
// START special handling for 'script' parameter
|
||||
// ... would be better if there is no special handling required ...
|
||||
|
||||
step.parameters['script'] = [
|
||||
docu: 'The common script environment of the Jenkinsfile running. ' +
|
||||
'Typically the reference to the script calling the pipeline ' +
|
||||
'step is provided with the this parameter, as in script: this. ' +
|
||||
'This allows the function to access the ' +
|
||||
'commonPipelineEnvironment for retrieving, for example, configuration parameters.',
|
||||
required: true
|
||||
]
|
||||
|
||||
// END special handling for 'script' parameter
|
||||
|
||||
Helper.normalize(params).toSorted().each {
|
||||
|
||||
it ->
|
||||
|
Loading…
Reference in New Issue
Block a user