Move meta artifact builder to common scripts subtree area

This commit is contained in:
Dan Hawkins 2018-10-24 14:24:17 +01:00
commit 36e3212d79

View file

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