Skip to content
Snippets Groups Projects
Commit d935d8c9 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Append CI build number to package version

This makes them unique and avoid collision with the shared cache.

issue8831
review254651002
parent de5ed036
No related merge requests found
......@@ -44,6 +44,12 @@
download_url = (
'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % (
name[8:], name, version))
local_version = []
for build in ['CI_BUILD_NUMBER', 'CI_JOB_NUMBER', 'CI_JOB_ID']:
if os.environ.get(build):
local_version.append(os.environ[build])
if local_version:
version += '+' + '.'.join(local_version)
requires = []
for dep in info.get('depends', []):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment