]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
checkout into right branch first...
authorHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 16:55:38 +0000 (18:55 +0200)
committerHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 16:55:38 +0000 (18:55 +0200)
debian_build.py

index b412be177cb082998b95af1d417ac49b0abf6485..7a5d6c03a4de8d79c547858ea025d3ff561699ec 100755 (executable)
@@ -380,6 +380,13 @@ if __name__ == '__main__':
         subprocess.check_call(cmd)
     else:
        # so we're in the master or release branches
+        # let's check it out :-D
+        if git_helper.git_checkout_branch(GIT_UPSTREAM_BRANCH):
+            logger.info('git checkout %s was successfull' % GIT_UPSTREAM_BRANCH)
+        else:
+            logger.info('git checkout %s was not successfull' % GIT_UPSTREAM_BRANCH)
+            exit_error()
+
         cmd = ['dpkg-parsechangelog']
        parse_changelog =  subprocess.Popen(
                 cmd,