mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
Merge pull request #658 from marcusholl/pr/fetchPossibleValues
fetch possible values from @see
This commit is contained in:
commit
e2544be073
@ -448,6 +448,8 @@ for(step in stepDescriptors) {
|
||||
def otherStep = param.value.docu.replaceAll('@see', '').trim()
|
||||
param.value.docu = fetchTextFrom(otherStep, param.key, stepDescriptors)
|
||||
param.value.mandatory = fetchMandatoryFrom(otherStep, param.key, stepDescriptors)
|
||||
if(! param.value.value)
|
||||
param.value.value = fetchPossibleValuesFrom(otherStep, param.key, stepDescriptors)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -511,6 +513,10 @@ def fetchMandatoryFrom(def step, def parameterName, def steps) {
|
||||
}
|
||||
}
|
||||
|
||||
def fetchPossibleValuesFrom(def step, def parameterName, def steps) {
|
||||
return steps[step]?.parameters[parameterName]?.value ?: ''
|
||||
}
|
||||
|
||||
def handleStep(stepName, prepareDefaultValuesStep, gse) {
|
||||
|
||||
File theStep = new File(stepsDir, "${stepName}.groovy")
|
||||
|
Loading…
Reference in New Issue
Block a user