]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
Drop PB_SUITE environment variable.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 23 Jul 2014 14:12:42 +0000 (16:12 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 23 Jul 2014 14:12:42 +0000 (16:12 +0200)
debian_build.py
lib/git_buildpackage.py
lib/pbuilder.py

index 60e258edd1bd125599b0fa4dce86f525aa3c8e84..b07353a73b0ee040cf339f990a1a4ced10b6e8e1 100755 (executable)
@@ -279,7 +279,6 @@ if __name__ == '__main__':
         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"
 
@@ -335,7 +334,6 @@ if __name__ == '__main__':
             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
@@ -353,10 +351,8 @@ if __name__ == '__main__':
         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:
@@ -414,9 +410,6 @@ if __name__ == '__main__':
         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,
@@ -608,7 +601,6 @@ if __name__ == '__main__':
         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:
index c7c074c0bc1904b5e2219d0443d99355797e1ac8..44794994987679877aac3e02fc2944fc72c00df3 100644 (file)
@@ -12,12 +12,11 @@ BIN_GIT_BUILDPACKAGE = '/usr/bin/git-buildpackage'
 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
             ):
         '''
@@ -27,7 +26,6 @@ class GitBuildPackage(object):
         self.debian_branch = debian_branch
         self.dist = dist
         self.arch = arch
-        self.pb_suite = pb_suite
         self.git_commit_id = git_commit_id
 
     @property
@@ -37,7 +35,6 @@ class GitBuildPackage(object):
         '''
         result = os.environ
         result['DIST'] = self.dist
-        result['PB_SUITE'] = self.pb_suite
         result['GIT_COMMIT_ID'] = self.git_commit_id
         return result
 
@@ -60,14 +57,14 @@ class GitBuildPackage(object):
         '''
         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(
index c1a4f8d20c1244c14d2023bdd40ba472c681dd77..21aec06c4408f75b4c87a4a2221fb38a3b6a2dcd 100644 (file)
@@ -17,7 +17,6 @@ class Pbuilder(object):
             dsc_file=None,
             dist=None,
             arch=None,
-            pb_suite=None,
             git_commit_id=None,
             ):
         '''
@@ -26,7 +25,6 @@ class Pbuilder(object):
         self.dsc_file = dsc_file
         self.dist = dist
         self.arch = arch
-        self.pb_suite = pb_suite
         self.git_commit_id = git_commit_id
 
     @property
@@ -37,7 +35,6 @@ class Pbuilder(object):
         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