Skip bitbucket trigger if there is no commit branch and no commit tag

This commit is contained in:
Joseph Schorr 2015-05-05 09:40:23 -07:00
parent 3818593717
commit 65d0332176

View file

@ -508,6 +508,9 @@ class BitbucketBuildTrigger(BuildTriggerHandler):
raise SkipRequestException()
# Check to see if this build should be skipped by ref.
if not commit.get('branch') and not commit.get('tag'):
raise SkipRequestException()
ref = 'refs/heads/' + commit['branch'] if commit.get('branch') else 'refs/tags/' + commit['tag']
raise_if_skipped(self.config, ref)