Skip to content

Commit d286f1f

Browse files
committed
If master, build against master. Else staging.
1 parent 08b1304 commit d286f1f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

Jenkinsfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,15 @@ node {
5555
bat 'nuget restore Essentials.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') {
63-
archiveArtifacts artifacts: "bin/x64/Release/Essentials.dll", caseSensitive: false, fingerprint: true, onlyIfSuccessful: true
66+
archiveArtifacts artifacts: "bin/x64/Release/Concealment.dll", caseSensitive: false, fingerprint: true, onlyIfSuccessful: true
6467
}
6568
}
6669
else

0 commit comments

Comments
 (0)