Create a meta folder seperate from other artifacts
This commit is contained in:
parent
c3458cde4f
commit
9b95e26e3c
2 changed files with 4 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ def getautobuildpath() {
|
|||
}
|
||||
|
||||
// Start up boilderplate
|
||||
def start(productname = "", jirakey = "", autobuildpath = autobuildroot, commonscriptspath = commonscriptsroot) {
|
||||
def start(productname = PRODUCT_NAME, subcomponentname = SUBCOMPONENT_NAME, jirakey = JIRA_KEY, autobuildpath = autobuildroot, commonscriptspath = commonscriptsroot) {
|
||||
echo "Starting...."
|
||||
|
||||
autobuildroot = autobuildpath
|
||||
|
|
@ -38,7 +38,7 @@ def start(productname = "", jirakey = "", autobuildpath = autobuildroot, commons
|
|||
metafolder.metareset()
|
||||
|
||||
def productinfo = load("${commonscripts()}/product/info.groovy")
|
||||
productinfo.setname(productname, jirakey)
|
||||
productinfo.setname(productname, subcomponentname, jirakey)
|
||||
|
||||
def ch = load("${commonscripts()}/configuration/configuration.groovy")
|
||||
ch.registerPipelineScriptConfiguration()
|
||||
|
|
|
|||
|
|
@ -3,9 +3,10 @@ metafolder = load("${autobuilder.commonscripts()}/meta/folder.groovy")
|
|||
PRODUCTFOLDER = "${metafolder.METAFOLDERNAME}/product"
|
||||
env.PRODUCTARTIFACTS = "${PRODUCTFOLDER}/**"
|
||||
|
||||
def setname(productname = "", jirakey = "") {
|
||||
def setname(productname = PRODUCT_NAME, subcomponentname = SUBCOMPONENT_NAME, jirakey = JIRA_KEY) {
|
||||
def productdata = [
|
||||
'name' : productname.trim(),
|
||||
'subcomponent' : subcomponentname.trim()
|
||||
'jirakey' : jirakey.trim()
|
||||
]
|
||||
def outJson = readJSON text: groovy.json.JsonOutput.toJson(productdata)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue