Jenkinsfile: Fix overwritten stashes.

This commit is contained in:
/dev/urandom 2016-09-13 02:11:41 +02:00
parent 717bb45d21
commit b85ae0f764
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

8
Jenkinsfile vendored
View File

@ -44,7 +44,7 @@ import groovy.transform.Field
// This will build the IW4x client. // This will build the IW4x client.
// We need a Windows Server with Visual Studio 2015, Premake5 and Git on it. // We need a Windows Server with Visual Studio 2015, Premake5 and Git on it.
def doBuild(premakeFlags, configuration) { def doBuild(name, premakeFlags, configuration) {
node("windows") { node("windows") {
checkout scm checkout scm
@ -58,7 +58,7 @@ def doBuild(premakeFlags, configuration) {
} }
archiveArtifacts artifacts: "*.dll,*.pdb", fingerprint: true archiveArtifacts artifacts: "*.dll,*.pdb", fingerprint: true
stash name: "iw4x $configuration", includes: "*.dll,*.pdb" stash name: "$name", includes: "*.dll,*.pdb"
} }
} }
@ -69,10 +69,10 @@ for (int i = 0; i < configurations.size(); i++)
{ {
def configuration = configurations[i] def configuration = configurations[i]
executions["$configuration"] = { executions["$configuration"] = {
doBuild("", configuration) doBuild("IW4x $configuration", "", configuration)
} }
executions["$configuration Unit-Testing"] = { executions["$configuration Unit-Testing"] = {
doBuild("--force-unit-tests", configuration) doBuild("IW4x $configuration with unit tests", "--force-unit-tests", configuration)
} }
} }
parallel executions parallel executions