Jenkinsfile: Allocate separate workspaces for each build configuration.

This commit is contained in:
/dev/urandom 2016-09-13 03:17:02 +02:00
parent ca190a3a80
commit baf1107a18
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

8
Jenkinsfile vendored
View File

@ -50,8 +50,9 @@ def useShippedPremake(f) {
// This will build the IW4x client.
// We need a Windows Server with Visual Studio 2015, Premake5 and Git on it.
def doBuild(name, premakeFlags, configuration) {
def doBuild(name, wsid, premakeFlags, configuration) {
node("windows") {
ws("./$wsid") {
checkout scm
useShippedPremake {
@ -64,6 +65,7 @@ def doBuild(name, premakeFlags, configuration) {
stash name: "$name", includes: "*.dll,*.pdb"
}
}
}
// This will run the unit tests for IW4x.
// We need a Windows Server with MW2 on it.
@ -124,10 +126,10 @@ stage("Build") {
{
def configuration = configurations[i]
executions["$configuration"] = {
doBuild("IW4x $configuration", "", configuration)
doBuild("IW4x $configuration", "$configuration", "", configuration)
}
executions["$configuration with unit tests"] = {
doBuild("IW4x $configuration (unit tests)", "--force-unit-tests", configuration)
doBuild("IW4x $configuration (unit tests)", "$configuration+unittests", "--force-unit-tests", configuration)
}
}
parallel executions