From 29cef8e594b2bb39f53102206718b86bffb29cc7 Mon Sep 17 00:00:00 2001 From: Tobias von der Krone Date: Mon, 7 Jul 2014 13:40:22 +0200 Subject: [PATCH] add git branches regex to allow additional packages of these branches to pe pushed to the cidb (Closes: #6977) --- debian_build.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian_build.py b/debian_build.py index a9c90fd..0f09be8 100755 --- a/debian_build.py +++ b/debian_build.py @@ -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/'): -- 2.39.5