@@ -22,14 +22,16 @@ def BRANCH = ""
2222// use Replay and change this line to force Combination tests to run, even on a gerrit-trigger build.
2323// useful for testing test-only changes.
2424def FORCE_COMBINATION_TEST_RUN = false
25+ def _SKIP_COMBINATION_TESTS = env. SKIP_COMBINATION_TESTS != null && SKIP_COMBINATION_TESTS
26+ def _RUN_COMBINATION_TESTS = FORCE_COMBINATION_TEST_RUN || (IS_GERRIT_TRIGGER . toBoolean() != true && ! _SKIP_COMBINATION_TESTS)
2527
2628pipeline {
2729 agent none
2830 stages {
2931 stage(" job valid?" ) {
3032 when {
3133 expression {
32- return _INTERNAL_OK_. toBoolean() != true
34+ return _INTERNAL_OK_. toBoolean() != true || ( IS_RELEASE . toBoolean() == true && ( VERSION . contains( ' changeme ' ) || VERSION == " " ))
3335 }
3436 }
3537 steps {
@@ -78,7 +80,8 @@ pipeline {
7880 stage(" combination-test" ) {
7981 agent { label " sdkqe-centos7" }
8082 when {
81- expression { return IS_GERRIT_TRIGGER . toBoolean() != true || RUN_COMBINATION_TESTS . toBoolean() == true || FORCE_COMBINATION_TEST_RUN }
83+ // see top of file for criteria
84+ expression { _RUN_COMBINATION_TESTS }
8285 }
8386 steps {
8487 doCombinationTests(CB_SERVER_VERSIONS , DOTNET_SDK_VERSION , BRANCH )
@@ -105,6 +108,7 @@ pipeline {
105108
106109 // pack with SNK
107110 withCredentials([file(credentialsId : ' netsdk-signkey' , variable : ' SDKSIGNKEY' )]) {
111+ batWithEcho(" deps\\ dotnet-core-sdk-${ DOTNET_SDK_VERSION} \\ dotnet build couchbase-net-client\\ Src\\ Couchbase\\ Couchbase.csproj -c Release /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=${ SDKSIGNKEY} /p:Version=${ version} /p:IncludeSymbols=true /p:IncludeSource=true /p:SourceLinkCreate=true" )
108112 batWithEcho(" deps\\ dotnet-core-sdk-${ DOTNET_SDK_VERSION} \\ dotnet pack couchbase-net-client\\ Src\\ Couchbase\\ Couchbase.csproj -c Release /p:SignAssembly=true /p:AssemblyOriginatorKeyFile=${ SDKSIGNKEY} /p:Version=${ version} /p:IncludeSymbols=true /p:IncludeSource=true /p:SourceLinkCreate=true" )
109113 }
110114
@@ -138,19 +142,6 @@ pipeline {
138142 cleanWs(patterns : [[pattern : ' deps/**' , type : ' EXCLUDE' ]])
139143
140144 script {
141- /*
142- dir("couchbase-net-client") {
143- def REL_VERSION = env.VERSION
144- sh("""
145- git config user.name "Couchbase SDK Team"
146- git config user.email "sdk_dev@couchbase.com"
147- git config user.signingkey 50984187E4FCD540EF7461781616981CC4A088B2
148- git tag -asm "Release v$REL_VERSION" v$REL_VERSION
149- git push origin v$REL_VERSION
150- """)
151- }
152- */
153-
154145 withCredentials([string(credentialsId : ' netsdk-nugetkey' , variable : ' NUGETKEY' )]) {
155146 if (! NUGETKEY ?. trim()) {
156147 echo " No Nuget key configured, unable to publish package"
0 commit comments