Jenkinsfile: Fix artifacts by putting binaries for each configuration into separate subfolders.

This commit is contained in:
/dev/urandom 2016-09-13 02:56:00 +02:00
parent 7dd069fbc9
commit 71ca2f9a58
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

14
Jenkinsfile vendored
View File

@ -57,7 +57,6 @@ def doBuild(name, premakeFlags, configuration) {
bat "\"${msbuild}\" build\\iw4x.sln \"/p:OutDir=$outputDir\\\\\" \"/p:Configuration=$configuration\""
}
archiveArtifacts artifacts: "*.dll,*.pdb", fingerprint: true
stash name: "$name", includes: "*.dll,*.pdb"
}
}
@ -137,3 +136,16 @@ for (int i = 0; i < configurations.size(); i++)
}
}
parallel executions
// Collect all the binaries and give each configuration its own subfolder
stage "Publishing"
node("windows") { // any node will do
for (int i = 0; i < configurations.size(); i++)
{
def configuration = configurations[i]
dir("$configuration") {
unstash "IW4x $configuration"
}
}
archiveArtifacts artifacts: "**/*.dll,**/*.pdb", fingerprint: true
}