mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-05 15:15:44 +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:[:]]
|
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 {
|
Helper.normalize(params).toSorted().each {
|
||||||
|
|
||||||
it ->
|
it ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user