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 gitlabBuilds(builds: ["Checkout & Versioning", "Build", "Testing", "Archiving"]) {
stage("Checkout & Versioning") { // First though let's give this build a proper name
stage("Checkout & Versioning") {
gitlabCommitStatus("Checkout & Versioning") { gitlabCommitStatus("Checkout & Versioning") {
node("windows") { node("windows") {
checkout scm checkout scm
@ -139,10 +140,10 @@ stage("Checkout & Versioning") {
} }
} }
} }
} }
// 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") {
gitlabCommitStatus("Build") { gitlabCommitStatus("Build") {
def executions = [:] def executions = [:]
for (int i = 0; i < configurations.size(); i++) for (int i = 0; i < configurations.size(); i++)
@ -157,10 +158,10 @@ stage("Build") {
} }
parallel executions parallel executions
} }
} }
// Run unit tests on each configuration. // Run unit tests on each configuration.
stage("Testing") { stage("Testing") {
gitlabCommitStatus("Testing") { gitlabCommitStatus("Testing") {
executions = [:] executions = [:]
for (int i = 0; i < configurations.size(); i++) for (int i = 0; i < configurations.size(); i++)
@ -172,11 +173,11 @@ stage("Testing") {
} }
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("Archiving") {
gitlabCommitStatus("Publishing") { gitlabCommitStatus("Archiving") {
node("windows") { // any node will do node("windows") { // any node will do
ws("IW4x/pub") { ws("IW4x/pub") {
try { try {
@ -194,4 +195,5 @@ stage("Publishing") {
} }
} }
} }
}
} }