Skip to content

Commit

Permalink
Fix repository slug in Jenkins provider
Browse files Browse the repository at this point in the history
Closes #997
  • Loading branch information
sandratatarevicova committed Feb 17, 2020
1 parent 7d76e4b commit b162294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ x
<!-- Your comment below this -->

- Update `parse-diff` library - [@417-72KI]
- Fix repository slug in Jenkins provider - [sandratatarevicova]

<!-- Your comment above this -->

Expand Down
2 changes: 1 addition & 1 deletion source/ci_source/providers/Jenkins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class Jenkins implements CISource {

return result.repo
}
return this.env.ghprbGhRepository || this.env.gitlabTargetNamespace + "/" + this.env.gitlabTargetRepoName
return this.env.ghprbGhRepository || new URL(this.env.GIT_URL_1).pathname.replace(/^\/(.*)\.git$/, "$1")
}

get ciRunURL() {
Expand Down

0 comments on commit b162294

Please sign in to comment.