pattern = "{debversion}~develop{time:%Y%m%d+%H%M}+{build}+{git-commit}"
else:
pattern = "{debversion}+develop{time:%Y%m%d+%H%M}+{build}+{git-commit}"
- pattern = pattern.format(build=ENV['BUILD_NUMBER']) + options.version_suffix
+ pattern = re.sub('{build}', ENV['BUILD_NUMBER'], pattern) + options.version_suffix
new_version = version_substitution(logger, pattern, curr_commit)
pb_suite = 'develop-{dist}'.format(dist=curr_dist)
reprepro_base = '/srv/pb-{dist}'.format(dist=curr_dist)
pattern = "{debversion}~experimental{time:%Y%m%d+%H%M}+{build}+{git-commit}"
else:
pattern = "{debversion}+experimental{time:%Y%m%d+%H%M}+{build}+{git-commit}"
- pattern = pattern.format(build=ENV['BUILD_NUMBER']) + options.version_suffix
+ pattern = re.sub('{build}', ENV['BUILD_NUMBER'], pattern) + options.version_suffix
new_version = version_substitution(logger, pattern, curr_commit)
reprepro_base = '/srv/dev-{dist}'.format(dist=curr_dist)
apt_dist = curr_dist + "-" + local_branch.replace("/", "-")