From: Tobias von der Krone Date: Mon, 7 Jul 2014 11:40:22 +0000 (+0200) Subject: add git branches regex to allow additional packages of these branches to pe pushed... X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=29cef8e594b2bb39f53102206718b86bffb29cc7;p=profitbricks%2Fjenkins-build-scripts.git add git branches regex to allow additional packages of these branches to pe pushed to the cidb (Closes: #6977) --- 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/'):