diff --git a/cpt/__init__.py b/cpt/__init__.py index 084c581..5ef40bf 100644 --- a/cpt/__init__.py +++ b/cpt/__init__.py @@ -1,5 +1,5 @@ -__version__ = '0.39.0' +__version__ = '0.39.1' def get_client_version(): diff --git a/cpt/ci_manager.py b/cpt/ci_manager.py index f1d76bf..3b190d1 100644 --- a/cpt/ci_manager.py +++ b/cpt/ci_manager.py @@ -244,7 +244,7 @@ def get_commit_id(self): return os.getenv("CI_COMMIT_SHA", None) def get_branch(self): - return os.getenv("CI_BUILD_REF_NAME", None) + return os.getenv("CI_BUILD_REF_NAME", None) or os.getenv("CI_COMMIT_REF_NAME", None) def is_pull_request(self): return os.getenv("CI_MERGE_REQUEST_ID", None)