diff --git a/CHANGELOG.md b/CHANGELOG.md index f1adfba3d..9bbc1692c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ x - Update `parse-diff` library - [@417-72KI] +- Fix repository slug in Jenkins provider - [sandratatarevicova] diff --git a/source/ci_source/providers/Jenkins.ts b/source/ci_source/providers/Jenkins.ts index 4efc10af0..ca64bc297 100644 --- a/source/ci_source/providers/Jenkins.ts +++ b/source/ci_source/providers/Jenkins.ts @@ -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() {