1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

Update createDocu.groovy

This commit is contained in:
Sven Merk
2019-11-11 10:44:03 +01:00
committed by GitHub
parent c9883bf5b0
commit 4e9fef433a

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