Skip to content

Commit 7ec1a49

Browse files
committed
Build against master if master, else staging.
1 parent 72c6f4d commit 7ec1a49

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ node {
5555
bat 'nuget restore Concealment.sln'
5656
}
5757

58-
resultMaster = test_with_torch("master")
59-
resultStaging = test_with_torch("staging")
60-
if (resultMaster || resultStaging) {
58+
if (env.BRANCH_NAME == "master") {
59+
result = test_with_torch("master")
60+
} else {
61+
result = test_with_torch("staging")
62+
}
63+
if (result) {
6164
currentBuild.result = "SUCCESS"
6265
stage('Archive') {
6366
archiveArtifacts artifacts: "bin/x64/Release/Concealment.dll", caseSensitive: false, fingerprint: true, onlyIfSuccessful: true

0 commit comments

Comments
 (0)