Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 8a99060

Browse files
committed
fix #96
1 parent 8a00058 commit 8a99060

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codecov/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,13 +470,15 @@ def main(*argv, **kwargs):
470470
query.update(dict(service='gitlab',
471471
branch=os.getenv('CI_BUILD_REF_NAME'),
472472
build=os.getenv('CI_BUILD_ID'),
473-
slug=os.getenv('CI_BUILD_REPO').split('/', 3)[-1].replace('.git', ''),
474473
commit=os.getenv('CI_BUILD_REF')))
475474
if os.getenv('CI_PROJECT_DIR', '').startswith('/'):
476475
root = os.getenv('CI_PROJECT_DIR')
477476
else:
478477
root = os.getenv('HOME') + '/' + os.getenv('CI_PROJECT_DIR', '')
479478

479+
if os.getenv('CI_BUILD_REPO'):
480+
query['slug'] = os.getenv('CI_BUILD_REPO').split('/', 3)[-1].replace('.git', '')
481+
480482
write(' Gitlab CI Detected')
481483

482484
else:

0 commit comments

Comments
 (0)