Create a meta folder seperate from other artifacts

This commit is contained in:
Dan Hawkins 2018-11-19 15:37:04 +00:00
commit 6ed9758336

View file

@ -26,9 +26,9 @@ class ProductInfo {
return data
}
def saveJsonSerialised(String outputfile, int prettylevel = 4) {
def outJson = readJSON text: groovy.json.JsonOutput.toJson(serialisationdata())
writeJSON(file: outputfile, json: outJson, pretty: prettylevel)
def saveJsonSerialised(script, String outputfile, int prettylevel = 4) {
def outJson = script.readJSON text: groovy.json.JsonOutput.toJson(serialisationdata())
script.writeJSON(file: outputfile, json: outJson, pretty: prettylevel)
}
}
@ -38,7 +38,7 @@ def setname(productname = PRODUCT_NAME, subcomponentname = SUBCOMPONENT_NAME, ji
theProductInfo = new ProductInfo(productname, subcomponentname, jirakey)
def PRODUCTFILE = "${PRODUCTFOLDER}/info.json"
theProductInfo.saveJsonSerialised(PRODUCTFILE)
theProductInfo.saveJsonSerialised(this, PRODUCTFILE)
}
return this;