1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00

provide the docu metadata as json

This commit is contained in:
Marcus Holl 2019-03-27 17:21:08 +01:00
parent ec58986ac5
commit 97c4ebf3dd

View File

@ -1,4 +1,5 @@
import groovy.io.FileType
import groovy.json.JsonOutput
import org.yaml.snakeyaml.Yaml
import org.codehaus.groovy.control.CompilerConfiguration
import com.sap.piper.GenerateDocumentation
@ -424,6 +425,10 @@ if(exceptionCaught) {
System.exit(1)
}
File docuMetaData = new File('target/docuMetaData.json')
if(docuMetaData.exists()) docuMetaData.delete()
docuMetaData << new JsonOutput().toJson(stepDescriptors)
System.err << "[INFO] done.\n"
void renderStep(stepName, stepProperties) {