Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
azz committed Oct 11, 2018
1 parent ee9d408 commit 74baf58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/ci_source/providers/Jenkins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export class Jenkins implements CISource {
const isGitHubPR =
ensureEnvKeysExist(this.env, ["ghprbPullId", "ghprbGhRepository"]) &&
ensureEnvKeysAreInt(this.env, ["ghprbPullId"])
const isBitBucketServerPR =
const isMultiBranchPR =
ensureEnvKeysExist(this.env, ["CHANGE_ID", "CHANGE_URL"]) && ensureEnvKeysAreInt(this.env, ["CHANGE_ID"])

return this.isJenkins() && (isBitBucketServerPR || isGitHubPR)
return this.isJenkins() && (isMultiBranchPR || isGitHubPR)
}

get pullRequestID(): string {
Expand Down

0 comments on commit 74baf58

Please sign in to comment.