obs_project = os.getenv('obs_project')
release_id = os.getenv('release_id')
version = os.getenv('version')
+ latest_release = os.getenv('latest')
# only supports the snapshot repo created by Jenkins
backend = BackendDB(os.getenv('REDIS_HOST'),
sleep(1)
break
+ if latest_release and 'snapshots' in profile_info['SnapshotDir']:
+ base_path = profile_info['SnapshotDir'].split('snapshots')
+ path_latest_release = os.path.join(path_repo_base, base_path[0], latest_release)
+ if os.path.lexists(path_latest_release):
+ print(path_release_snapshot, "->", path_latest_release)
+ os.unlink(path_latest_release)
+ os.symlink(path_release_snapshot, path_latest_release)
+
# update reference project information with release id
if os.getenv("REF_MAP_UPDATE_ENABLED", "0") != "0" \
and os.getenv("REF_MAPPING_PRJ") is not None \