Create a meta folder seperate from other artifacts
This commit is contained in:
parent
210e17c2e8
commit
6ed9758336
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue