Skip to content

Commit

Permalink
Build against master if master, else staging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Equinox- committed Sep 1, 2017
1 parent 72c6f4d commit 7ec1a49
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ node {
bat 'nuget restore Concealment.sln'
}

resultMaster = test_with_torch("master")
resultStaging = test_with_torch("staging")
if (resultMaster || resultStaging) {
if (env.BRANCH_NAME == "master") {
result = test_with_torch("master")
} else {
result = test_with_torch("staging")
}
if (result) {
currentBuild.result = "SUCCESS"
stage('Archive') {
archiveArtifacts artifacts: "bin/x64/Release/Concealment.dll", caseSensitive: false, fingerprint: true, onlyIfSuccessful: true
Expand Down

0 comments on commit 7ec1a49

Please sign in to comment.