Jenkinsfile: Forward commit status to GitLab.

This commit is contained in:
/dev/urandom 2016-09-14 21:13:14 +02:00
parent 8eb34fbdb4
commit d0702cffc5
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

8
Jenkinsfile vendored
View File

@ -128,6 +128,7 @@ def doUnitTests(name, wsid) {
// First though let's give this build a proper name
stage("Checkout & Versioning") {
gitlabCommitStatus("Checkout & Versioning") {
node("windows") {
checkout scm
@ -138,9 +139,11 @@ stage("Checkout & Versioning") {
}
}
}
}
// 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++)
{
@ -154,9 +157,11 @@ stage("Build") {
}
parallel executions
}
}
// Run unit tests on each configuration.
stage("Testing") {
gitlabCommitStatus("Testing") {
executions = [:]
for (int i = 0; i < configurations.size(); i++)
{
@ -167,9 +172,11 @@ stage("Testing") {
}
parallel executions
}
}
// Collect all the binaries and give each configuration its own subfolder
stage("Publishing") {
gitlabCommitStatus("Publishing") {
node("windows") { // any node will do
ws("IW4x/pub") {
try {
@ -187,3 +194,4 @@ stage("Publishing") {
}
}
}
}