Jenkinsfile: Allocate separate workspaces for each build configuration.
This commit is contained in:
parent
ca190a3a80
commit
baf1107a18
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -50,8 +50,9 @@ def useShippedPremake(f) {
|
|||||||
|
|
||||||
// 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(name, premakeFlags, configuration) {
|
def doBuild(name, wsid, premakeFlags, configuration) {
|
||||||
node("windows") {
|
node("windows") {
|
||||||
|
ws("./$wsid") {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
useShippedPremake {
|
useShippedPremake {
|
||||||
@ -64,6 +65,7 @@ def doBuild(name, premakeFlags, configuration) {
|
|||||||
stash name: "$name", includes: "*.dll,*.pdb"
|
stash name: "$name", includes: "*.dll,*.pdb"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// This will run the unit tests for IW4x.
|
// This will run the unit tests for IW4x.
|
||||||
// We need a Windows Server with MW2 on it.
|
// We need a Windows Server with MW2 on it.
|
||||||
@ -124,10 +126,10 @@ stage("Build") {
|
|||||||
{
|
{
|
||||||
def configuration = configurations[i]
|
def configuration = configurations[i]
|
||||||
executions["$configuration"] = {
|
executions["$configuration"] = {
|
||||||
doBuild("IW4x $configuration", "", configuration)
|
doBuild("IW4x $configuration", "$configuration", "", configuration)
|
||||||
}
|
}
|
||||||
executions["$configuration with unit tests"] = {
|
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
|
parallel executions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user