CORE-348 - Provide a script that can obtain a package from a release repo
This commit is contained in:
parent
6f0a4482be
commit
ddd07b90e4
1 changed files with 9 additions and 1 deletions
|
|
@ -50,7 +50,15 @@ pipeline {
|
|||
importer = load("${autobuilder.commonscripts()}/import/importer.groovy")
|
||||
|
||||
def packageimportoptions = importer.getNewImportOptions()
|
||||
packageimportoptions.jenkinsjob(PACKAGE_CREATE_JOB, PACKAGE_CREATE_JOB_SELECTOR)
|
||||
// For backward compatibility - in case these parameters are not supplied
|
||||
def packagelocation = params[PACKAGE_LOCATION] ?: 'Jenkins job artifact'
|
||||
def packagereleaserepo = params[PACKAGE_RELEASE_REPO] ?: ''
|
||||
def packagereleaserevision = params[PACKAGE_RELEASE_REVISION] ?: ''
|
||||
packageimportoptions.source(packagelocation,
|
||||
PACKAGE_CREATE_JOB,
|
||||
PACKAGE_CREATE_JOB_SELECTOR,
|
||||
packagereleaserepo,
|
||||
packagereleaserevision)
|
||||
packageimportoptions.setincrementversionnumber(true)
|
||||
packagemeta = importer.artifactimport(meta, packageimportoptions, PACKAGEDEST)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue