1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-07-17 01:42:43 +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:
Sven Merk
2019-11-11 11:02:27 +01:00
committed by GitHub

View File

@ -839,7 +839,8 @@ def handleStep(stepName, gse) {
File theStepDocu = new File(stepsDocuDir, "${stepName}.md") File theStepDocu = new File(stepsDocuDir, "${stepName}.md")
File theStepDeps = new File('documentation/jenkins_workspace/plugin_mapping.json') 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 //try to get a corresponding stage documentation
def stageName = stepName.split('Stage')[1].toLowerCase() def stageName = stepName.split('Stage')[1].toLowerCase()
theStepDocu = new File(stagesDocuDir,"${stageName}.md" ) theStepDocu = new File(stagesDocuDir,"${stageName}.md" )