Jenkinsfile: Fix GitLab commit status forwarding.

This commit is contained in:
/dev/urandom 2016-09-14 22:33:19 +02:00
parent d0702cffc5
commit 9fc98ad5b0
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

26
Jenkinsfile vendored
View File

@ -126,8 +126,9 @@ def doUnitTests(name, wsid) {
}
}
// First though let's give this build a proper name
stage("Checkout & Versioning") {
gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"]) {
// First though let's give this build a proper name
stage("Checkout & Versioning") {
gitlabCommitStatus("Checkout & Versioning") {
node("windows") {
checkout scm
@ -139,10 +140,10 @@ stage("Checkout & Versioning") {
}
}
}
}
}
// For each available configuration generate a normal build and a unit test build.
stage("Build") {
// For each available configuration generate a normal build and a unit test build.
stage("Build") {
gitlabCommitStatus("Build") {
def executions = [:]
for (int i = 0; i < configurations.size(); i++)
@ -157,10 +158,10 @@ stage("Build") {
}
parallel executions
}
}
}
// Run unit tests on each configuration.
stage("Testing") {
// Run unit tests on each configuration.
stage("Testing") {
gitlabCommitStatus("Testing") {
executions = [:]
for (int i = 0; i < configurations.size(); i++)
@ -172,11 +173,11 @@ stage("Testing") {
}
parallel executions
}
}
}
// Collect all the binaries and give each configuration its own subfolder
stage("Publishing") {
gitlabCommitStatus("Publishing") {
// Collect all the binaries and give each configuration its own subfolder
stage("Archiving") {
gitlabCommitStatus("Archiving") {
node("windows") { // any node will do
ws("IW4x/pub") {
try {
@ -194,4 +195,5 @@ stage("Publishing") {
}
}
}
}
}