Start using meta info for storing configuration

This commit is contained in:
Dan Hawkins 2018-11-20 20:29:56 +00:00
commit 632b08b6e9

View file

@ -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)