Start using meta info for storing configuration
This commit is contained in:
parent
e3942ba1fe
commit
632b08b6e9
1 changed files with 2 additions and 3 deletions
|
|
@ -4,8 +4,6 @@ autobuildroot = "${WORKSPACE}/autobuild"
|
|||
|
||||
commonscriptsroot = "${autobuildroot}/Common_scripts"
|
||||
|
||||
metafolder = load("${commonscripts()}/meta/folder.groovy")
|
||||
|
||||
def conditionalclean(doclean = "${CLEAN_WORKSPACE}" == "true") {
|
||||
if (doclean) {
|
||||
echo "Cleaning workspace"
|
||||
|
|
@ -28,7 +26,7 @@ def getautobuildpath() {
|
|||
}
|
||||
|
||||
// Start up boilderplate
|
||||
MetaInfo start(script, productname = PRODUCT_NAME, subcomponentname = SUBCOMPONENT_NAME, jirakey = JIRA_KEY, autobuildpath = autobuildroot, commonscriptspath = commonscriptsroot) {
|
||||
def start(script, productname = PRODUCT_NAME, subcomponentname = SUBCOMPONENT_NAME, jirakey = JIRA_KEY, autobuildpath = autobuildroot, commonscriptspath = commonscriptsroot) {
|
||||
echo "Starting...."
|
||||
|
||||
autobuildroot = autobuildpath
|
||||
|
|
@ -36,6 +34,7 @@ MetaInfo start(script, productname = PRODUCT_NAME, subcomponentname = SUBCOMPONE
|
|||
|
||||
conditionalclean()
|
||||
|
||||
def metafolder = load("${commonscripts()}/meta/folder.groovy")
|
||||
def meta = metafolder.metareset(script)
|
||||
meta.productinfo.set(productname, subcomponentname, jirakey)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue