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