Jenkinsfile: Yeah, let's not use deprecated code patterns.
This commit is contained in:
parent
ee936a9a3a
commit
7c554962ed
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -100,8 +100,8 @@ def doUnitTests(name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change build name to correct version
|
// First though let's give this build a proper name
|
||||||
stage "Versioning"
|
stage "Checkout & Versioning" {
|
||||||
node("windows") {
|
node("windows") {
|
||||||
checkout scm
|
checkout scm
|
||||||
|
|
||||||
@ -109,9 +109,10 @@ node("windows") {
|
|||||||
|
|
||||||
currentBuild.setDisplayName "$version (#${env.BUILD_NUMBER})"
|
currentBuild.setDisplayName "$version (#${env.BUILD_NUMBER})"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// For each available configuration generate a normal build and a unit test build.
|
// For each available configuration generate a normal build and a unit test build.
|
||||||
stage "Build"
|
stage "Build" {
|
||||||
def executions = [:]
|
def executions = [:]
|
||||||
for (int i = 0; i < configurations.size(); i++)
|
for (int i = 0; i < configurations.size(); i++)
|
||||||
{
|
{
|
||||||
@ -124,9 +125,10 @@ for (int i = 0; i < configurations.size(); i++)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
parallel executions
|
parallel executions
|
||||||
|
}
|
||||||
|
|
||||||
// Run unit tests on each configuration.
|
// Run unit tests on each configuration.
|
||||||
stage "Testing"
|
stage "Testing" {
|
||||||
executions = [:]
|
executions = [:]
|
||||||
for (int i = 0; i < configurations.size(); i++)
|
for (int i = 0; i < configurations.size(); i++)
|
||||||
{
|
{
|
||||||
@ -136,9 +138,10 @@ for (int i = 0; i < configurations.size(); i++)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
parallel executions
|
parallel executions
|
||||||
|
}
|
||||||
|
|
||||||
// Collect all the binaries and give each configuration its own subfolder
|
// Collect all the binaries and give each configuration its own subfolder
|
||||||
stage "Publishing"
|
stage "Publishing" {
|
||||||
node("windows") { // any node will do
|
node("windows") { // any node will do
|
||||||
for (int i = 0; i < configurations.size(); i++)
|
for (int i = 0; i < configurations.size(); i++)
|
||||||
{
|
{
|
||||||
@ -149,3 +152,4 @@ node("windows") { // any node will do
|
|||||||
}
|
}
|
||||||
archiveArtifacts artifacts: "**/*.dll,**/*.pdb", fingerprint: true
|
archiveArtifacts artifacts: "**/*.dll,**/*.pdb", fingerprint: true
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user