Move meta artifact builder to common scripts subtree area
This commit is contained in:
parent
2dfbe7b4c3
commit
36e3212d79
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
// Take a list of Sub-job descriptors and output folder pairs, copy the artifacts, while filling in a string of artifact folders
|
||||
def combineSubjobArtifacts(subJobs, artifactFolders, exportRootFolder = "${WORKSPACE}") {
|
||||
def combineSubjobArtifacts(subJobs) {
|
||||
artifactFolders = ""
|
||||
for (subJob in subJobs) {
|
||||
subJobObject = subJob[0]
|
||||
|
|
@ -8,7 +8,7 @@ def combineSubjobArtifacts(subJobs, artifactFolders, exportRootFolder = "${WORKS
|
|||
if (subJobObject != null) {
|
||||
subJobName = subJobObject.getProjectName()
|
||||
subJobNumber = subJobObject.getNumber()
|
||||
destFolder = "${exportRootFolder}/${artifactFolder}"
|
||||
destFolder = "${artifactFolder}"
|
||||
|
||||
dir("${destFolder}") {
|
||||
deleteDir()
|
||||
|
|
@ -19,6 +19,7 @@ def combineSubjobArtifacts(subJobs, artifactFolders, exportRootFolder = "${WORKS
|
|||
artifactFolders += "${destFolder}/**,"
|
||||
}
|
||||
}
|
||||
return artifactFolders;
|
||||
}
|
||||
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue