new_dist = curr_dist
alexandria_dist = 'stable'
new_version = curr_version + options.version_suffix
- pb_suite = 'master-{dist}'.format(dist=curr_dist)
reprepro_base = '/srv/pb-{dist}'.format(dist=curr_dist)
apt_target = "repo01-debian"
pattern = "{debversion}+develop{time:%Y%m%d+%H%M}+{build}+{git-commit}"
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)
apt_target = "repo01-debian-dev"
# reset actions
new_dist = curr_dist + "-" + local_branch.replace("/", "-")
if curr_dist == "wheezy":
alexandria_dist = "wheezy-dev-{0}".format(local_branch.replace("/", "-"))
- pb_suite = alexandria_dist
else:
alexandria_dist = 'dev-{0}'.format(local_branch.replace("/", "-"))
- pb_suite = alexandria_dist
if cl.distributions == "UNRELEASED":
pattern = "{debversion}~experimental{time:%Y%m%d+%H%M}+{build}+{git-commit}"
else:
old_version=curr_version,
new_version=new_version,
))
- logger.info('PB_SUITE (used by pbuilder): {suite}'.format(
- suite=pb_suite,
- ))
if do_tagging:
logger.info('Tag to create: {tag}'.format(
tag=new_tag,
dsc_file=source_builder.dsc_file,
dist=curr_dist,
arch='amd64',
- pb_suite=pb_suite,
git_commit_id=curr_commit_hexsha[0:7],
)
if ret == 0:
BIN_SUDO = '/usr/bin/sudo'
class GitBuildPackage(object):
- def __init__(self,
+ def __init__(self,
upstream_branch=None,
- debian_branch=None,
+ debian_branch=None,
dist=None,
- arch=None,
- pb_suite=None,
+ arch=None,
git_commit_id=None
):
'''
self.debian_branch = debian_branch
self.dist = dist
self.arch = arch
- self.pb_suite = pb_suite
self.git_commit_id = git_commit_id
@property
'''
result = os.environ
result['DIST'] = self.dist
- result['PB_SUITE'] = self.pb_suite
result['GIT_COMMIT_ID'] = self.git_commit_id
return result
'''
TODO
'''
- # if we would build orig.tar.gz we would need to be able to access
- # them later, which we probably could achieve with using pristine-tar
- # and storing that in the git repo - but this has the downside that
+ # if we would build orig.tar.gz we would need to be able to access
+ # them later, which we probably could achieve with using pristine-tar
+ # and storing that in the git repo - but this has the downside that
# the jenkins build job would need to push this back into the git repo
- # (so this makes things complicated) and then still, we could not
- # gurantee that this orig.tar.gz actually reflects the git repo at
+ # (so this makes things complicated) and then still, we could not
+ # gurantee that this orig.tar.gz actually reflects the git repo at
# that point.
- # So in summary, it would be expensive and buys as nothing, as we
+ # So in summary, it would be expensive and buys as nothing, as we
# can always generate the source from said git repos...
cmdobj = subprocess.Popen(
dsc_file=None,
dist=None,
arch=None,
- pb_suite=None,
git_commit_id=None,
):
'''
self.dsc_file = dsc_file
self.dist = dist
self.arch = arch
- self.pb_suite = pb_suite
self.git_commit_id = git_commit_id
@property
result = os.environ
result['DIST'] = self.dist
result['ARCHITECTURE'] = self.arch
- result['PB_SUITE'] = self.pb_suite
result['GIT_COMMIT_ID'] = self.git_commit_id
return result