Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
add CI_REPOSITORY_URL to gitlab detection, fix #60
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Peak authored Apr 30, 2017
1 parent 74a44f2 commit 576b9fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/services/gitlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ module.exports = {

configuration : function(){
console.log(' Gitlab CI Detected');
var remote = process.env.CI_BUILD_REPO || process.env.CI_REPOSITORY_URL || '';
return {
service : 'gitlab',
build : process.env.CI_BUILD_ID,
commit : process.env.CI_BUILD_REF,
branch : process.env.CI_BUILD_REF_NAME,
root : process.env.CI_PROJECT_DIR,
slug : process.env.CI_BUILD_REPO.split('/').slice(3, 5).join('/').replace('.git', '')
slug : remote.split('/').slice(3, 5).join('/').replace('.git', '')
};
}

Expand Down

3 comments on commit 576b9fe

@Justkant
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, would it be possible to release this as a fix ?

@eddiemoore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just released v2.2.0 which includes this fix. Plus support for Jenkins Blue Ocean and cleaning reports after upload

@Justkant
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eddiemoore Thx for the quick response

Please sign in to comment.