Commit f5f33d14 authored by Siarhei Khaletski (EPAM)'s avatar Siarhei Khaletski (EPAM) 🚩
Browse files

Merge branch 'GONRG-3618_Fix_local_build_setup' into 'master'

GONRG-3618: Local build setup

See merge request !50
parents 48ab6346 9b77d6ca
Pipeline #75332 passed with stages
in 25 seconds
......@@ -33,9 +33,12 @@ def prepare_version():
else:
# we assume that it is commit version
# https://packaging.python.org/guides/distributing-packages-using-setuptools/#local-version-identifiers
commit = os.environ["BUILD_COMMIT_SHORT_SHA"]
build_id = os.environ["BUILD_ID"]
version = f"{get_version_from_file()}.dev{build_id}+{commit}"
try:
commit = os.environ["BUILD_COMMIT_SHORT_SHA"]
build_id = os.environ["BUILD_ID"]
version = f"{get_version_from_file()}.dev{build_id}+{commit}"
except KeyError:
version = get_version_from_file()
return version
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment