mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
Merge pull request #965 from SAP/fix-for-nexus-stage-step
Fix docu generation for nexus stage step
This commit is contained in:
commit
b590e57d16
@ -839,7 +839,8 @@ def handleStep(stepName, gse) {
|
||||
File theStepDocu = new File(stepsDocuDir, "${stepName}.md")
|
||||
File theStepDeps = new File('documentation/jenkins_workspace/plugin_mapping.json')
|
||||
|
||||
if (!theStepDocu.exists() && stepName.indexOf('Stage') != -1) {
|
||||
def stageNameFields = stepName.split('Stage')
|
||||
if (!theStepDocu.exists() && stepName.indexOf('Stage') != -1 && stageNameFields.size() > 1) {
|
||||
//try to get a corresponding stage documentation
|
||||
def stageName = stepName.split('Stage')[1].toLowerCase()
|
||||
theStepDocu = new File(stagesDocuDir,"${stageName}.md" )
|
||||
|
Loading…
x
Reference in New Issue
Block a user