Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 30cd288

Browse files
authored
Merge pull request #53 from BosAtWork/master
Add support for bitbucket server 6.6.2
2 parents a7c1f56 + bcbcba6 commit 30cd288

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

functions/source/GitPullS3/lambda_function.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,11 @@ def lambda_handler(event, context):
193193
if(event['body-json']['push']['changes'][0]['new']['type'] == 'tag'):
194194
branch_name = 'tags/'+event['body-json']['push']['changes'][0]['new']['name']
195195
except:
196-
branch_name = 'master'
196+
# Bitbucket Server v6.6.1
197+
try:
198+
branch_name = event['body-json']['changes'][0]['ref']['displayId']
199+
except:
200+
branch_name = 'master'
197201
try:
198202
# GitLab
199203
remote_url = event['body-json']['project']['git_ssh_url']

0 commit comments

Comments
 (0)