]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add git branches regex to allow additional packages of these branches to pe pushed...
authorTobias von der Krone <tobias.vonderkrone@profitbricks.com>
Mon, 7 Jul 2014 11:40:22 +0000 (13:40 +0200)
committerTobias von der Krone <tobias.vonderkrone@profitbricks.com>
Mon, 7 Jul 2014 11:40:22 +0000 (13:40 +0200)
debian_build.py

index a9c90fdeafac9a17ae38a6698164954aa70eb917..0f09be87dfa3573e7379e16e3238ae6ff7c7d575 100755 (executable)
@@ -67,6 +67,9 @@ EXPERIMENTAL_BRANCHES_RE = re.compile(
 COMMIT_TRIGGER_BRANCHES_RE = re.compile(
     '^(origin/)?(feature/.*)$'
 )
+ALSO_ADD_CIDB_BRANCHES_RE = re.compile(
+    '^(origin/)?(feature/autotest)$'
+)
 
 
 def getopts():
@@ -387,6 +390,10 @@ if __name__ == '__main__':
         ))
         exit_error()
 
+    # also add packages of theses branches to the cidb
+    if re.match(ALSO_ADD_CIDB_BRANCHES_RE, ENV['GIT_BRANCH']):
+        do_cidb = True
+
     #FIXME: enable this once Florian acks.
     #FIXME: get rid of jenkins parameter, instead use git remote
     #if GIT_REPO_PATH.startswith('/srv/git/dev/'):