Jenkinsfile: Forward commit status to GitLab.
This commit is contained in:
parent
8eb34fbdb4
commit
d0702cffc5
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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") {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user