1
0
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:
Sven Merk 2019-11-11 11:02:27 +01:00 committed by GitHub
commit b590e57d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" )