mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
22 lines
804 B
Groovy
22 lines
804 B
Groovy
import com.cloudbees.groovy.cps.NonCPS
|
|
import com.sap.piper.Utils
|
|
/**
|
|
* Name of library step
|
|
*
|
|
* @param script global script environment of the Jenkinsfile run
|
|
* @param others document all parameters
|
|
*/
|
|
def call(Map parameters = [:], body) {
|
|
//ToDo: Change parameter stepName
|
|
handlePipelineStepErrors (stepName: 'stepName', stepParameters: parameters) {
|
|
def utils = new Utils()
|
|
def script = parameters.script
|
|
if (script == null)
|
|
script = [commonPipelineEnvironment: commonPipelineEnvironment]
|
|
//mandatory parameter - default cannot be null
|
|
def mandatoryPara = utils.getMandatoryParameter(parameters, 'paramName', 'param_default')
|
|
//optional parameter - default can be null
|
|
def param1 = parameters.get('param1Name')
|
|
}
|
|
}
|