]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
only trigger liveboots automatically for builds from master+hotfix/* branches
authorHolger Levsen <holger@layer-acht.org>
Tue, 16 Oct 2012 13:58:03 +0000 (15:58 +0200)
committerHolger Levsen <holger@layer-acht.org>
Tue, 16 Oct 2012 13:58:03 +0000 (15:58 +0200)
debian_build.py

index ece00ad0b4dabf4620fb6872cbb56dd0fde5a75d..a026b4df3d577c2c7ad0057fe2421d77e0568bce 100755 (executable)
@@ -568,7 +568,6 @@ if __name__ == '__main__':
         logger.exception(error)
         exit_error()
     BUILD_END = datetime.datetime.now()
-    # FIXME: must not add development builds... or maybe?
     # cidb wise, we only care about builds from master, hotfix + develop
     package_instances=[]
     if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME == 'develop' or GIT_BRANCH_NAME.startswith('hotfix/'):
@@ -579,7 +578,8 @@ if __name__ == '__main__':
             subprocess.check_call(cmd)
             logger.error("package instance not added to DB")
             exit_error()
-        if len(package_instances) > 0:
+        # only trigger liveboots automatically for builds from master+hotfix/* branches
+        if len(package_instances) > 0 and ( GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/')):
             try:
                 add_liveboot_request(package_instances)
             except: