Skip bitbucket trigger if there is no commit branch and no commit tag
This commit is contained in:
parent
3818593717
commit
65d0332176
1 changed files with 3 additions and 0 deletions
|
@ -508,6 +508,9 @@ class BitbucketBuildTrigger(BuildTriggerHandler):
|
||||||
raise SkipRequestException()
|
raise SkipRequestException()
|
||||||
|
|
||||||
# Check to see if this build should be skipped by ref.
|
# 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']
|
ref = 'refs/heads/' + commit['branch'] if commit.get('branch') else 'refs/tags/' + commit['tag']
|
||||||
raise_if_skipped(self.config, ref)
|
raise_if_skipped(self.config, ref)
|
||||||
|
|
||||||
|
|
Reference in a new issue