Add parameter to do nested copies
This commit is contained in:
parent
a5cfe14f9b
commit
bdd72825fc
1 changed files with 10 additions and 1 deletions
|
|
@ -24,7 +24,16 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
importer = load("${autobuilder.commonscripts()}/import/importer.groovy")
|
||||
importer.artifactimport(meta, SOURCE_ARTIFACT_LOCATION, SOURCE_ARTIFACT_BUILD_JOB, SOURCE_ARTIFACT_BUILD_SELECTOR, SOURCE_ARTIFACT_RELEASE_REPO, SOURCE_ARTIFACT_RELEASE_REVISION, IMPORTS)
|
||||
def copyoptions = importer.ImportOptions(this)
|
||||
copyoptions.source(
|
||||
SOURCE_ARTIFACT_LOCATION,
|
||||
SOURCE_ARTIFACT_BUILD_JOB,
|
||||
SOURCE_ARTIFACT_BUILD_SELECTOR,
|
||||
SOURCE_ARTIFACT_RELEASE_REPO,
|
||||
SOURCE_ARTIFACT_RELEASE_REVISION)
|
||||
echo "Nested: ${NESTED_COPY}"
|
||||
copyoptions.setnested((NESTED_COPY == 'True' ? true : false))
|
||||
importer.artifactimport(meta, copyoptions, IMPORTS)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue