Skip to content

Commit ef6e695

Browse files
authored
Merge pull request #13 from couchbaselabs/rponton/AgentMasterNone
Remove dependency on master agent to prevent stuck builds.
2 parents fa83749 + ef1afe6 commit ef6e695

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

dotnet/sdk/build-pipeline.groovy

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pipeline {
4646
}
4747
}
4848
stage("prepare and validate") {
49-
agent { label "centos6||centos7||ubuntu16||ubuntu14" }
49+
agent { label "centos6||centos7||ubuntu16||ubuntu14||ubuntu20" }
5050
steps {
5151

5252
echo "Branch: ${GERRIT_BRANCH}"
@@ -73,13 +73,11 @@ pipeline {
7373
}
7474
}
7575
stage("build") {
76-
agent { label "master" }
7776
steps {
7877
doBuilds(PLATFORMS, DOTNET_SDK_VERSION, BRANCH, ALL_SUPPORTED_SDK_VERSIONS)
7978
}
8079
}
8180
stage("unit-test") {
82-
agent { label "master" }
8381
steps {
8482
doUnitTests(PLATFORMS, DOTNET_SDK_VERSION, BRANCH, ALL_SUPPORTED_SDK_VERSIONS)
8583
}
@@ -234,14 +232,14 @@ def doUnitTests(PLATFORMS, DOTNET_SDK_VERSION, BRANCH, ALL_SUPPORTED_SDK_VERSION
234232
batWithEcho("%TEMP%\\cbnc\\deps\\dotnet-core-sdk-${DOTNET_SDK_VERSION}\\dotnet test --test-adapter-path:. --logger:junit couchbase-net-client\\tests\\Couchbase.UnitTests\\Couchbase.UnitTests.csproj -f net5.0 --no-build")
235233
}
236234
finally {
237-
junit allowEmptyResults: true, testResults: "couchbase-net-client\\tests\\Couchbase.UnitTests\\TestResults\\TestResults.xml"
235+
junit allowEmptyResults: false, testResults: "couchbase-net-client\\tests\\Couchbase.UnitTests\\TestResults\\TestResults.xml"
238236
}
239237
} else {
240238
try {
241239
shWithEcho("deps/dotnet-core-sdk-${DOTNET_SDK_VERSION}/dotnet test --test-adapter-path:. --logger:junit couchbase-net-client/tests/Couchbase.UnitTests/Couchbase.UnitTests.csproj -f net5.0 --no-build")
242240
}
243241
finally {
244-
junit allowEmptyResults: true, testResults: "couchbase-net-client/tests/Couchbase.UnitTests/TestResults/TestResults.xml"
242+
junit allowEmptyResults: false, testResults: "couchbase-net-client/tests/Couchbase.UnitTests/TestResults/TestResults.xml"
245243
}
246244
}
247245
} else if (BRANCH == "release27") {

0 commit comments

Comments
 (0)