This repository was archived by the owner on Oct 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 11functions /packages
22.idea
3- .DS_Store
3+ .DS_Store
4+ taskcat_outputs
Original file line number Diff line number Diff line change 1- FROM lambci/lambda:build-python3.7
1+ FROM lambci/lambda:build-python3.8
22
33COPY . .
44
55RUN mkdir -p python/ && \
6- pip install -t python / -r ./requirements.txt && \
6+ pip install -t . / -r ./requirements.txt && \
77 find . -name "*.dist-info" -exec rm -rf {} \; | true && \
88 find . -name "*.egg-info" -exec rm -rf {} \; | true && \
99 find . -name "*.pth" -exec rm -rf {} \; | true && \
Original file line number Diff line number Diff line change @@ -111,7 +111,11 @@ def lambda_handler(event, context):
111111 # Bibucket server
112112 branch_name = event ['body-json' ]['push' ]['changes' ][0 ]['new' ]['name' ]
113113 except :
114- branch_name = 'master'
114+ # Bitbucket Server v6.6.1
115+ try :
116+ branch_name = event ['body-json' ]['changes' ][0 ]['ref' ]['displayId' ]
117+ except :
118+ branch_name = 'master'
115119 try :
116120 # GitLab
117121 remote_url = event ['body-json' ]['project' ]['git_ssh_url' ]
Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ Resources:
144144 - functions/packages/CreateSSHKey/lambda.zip
145145 - functions/packages/DeleteBucketContents/lambda.zip
146146 - functions/packages/GitPullS3/lambda.zip
147- - functions/packages/CustomActionLambda/lambda.zip
148147
149148 CopyZipsRole :
150149 Type : AWS::IAM::Role
@@ -383,10 +382,10 @@ Resources:
383382 Type : AWS::Lambda::Function
384383 Properties :
385384 Handler : lambda_function.lambda_handler
386- MemorySize : ' 128'
385+ MemorySize : 128
387386 Role : !GetAtt 'CreateSSHKeyRole.Arn'
388387 Runtime : python3.8
389- Timeout : ' 300'
388+ Timeout : 300
390389 Code :
391390 S3Bucket : !Ref 'LambdaZipsBucket'
392391 S3Key : !Sub '${QSS3KeyPrefix}functions/packages/CreateSSHKey/lambda.zip'
@@ -451,10 +450,10 @@ Resources:
451450 Type : AWS::Lambda::Function
452451 Properties :
453452 Handler : lambda_function.lambda_handler
454- MemorySize : ' 128'
453+ MemorySize : 128
455454 Role : !GetAtt 'DeleteBucketContentsRole.Arn'
456455 Runtime : python3.8
457- Timeout : ' 300'
456+ Timeout : 300
458457 Code :
459458 S3Bucket : !Ref 'LambdaZipsBucket'
460459 S3Key : !Sub '${QSS3KeyPrefix}functions/packages/DeleteBucketContents/lambda.zip'
@@ -693,10 +692,10 @@ Resources:
693692 Type : AWS::Lambda::Function
694693 Properties :
695694 Handler : lambda_function.lambda_handler
696- MemorySize : ' 128'
695+ MemorySize : 128
697696 Role : !GetAtt 'GitPullRole.Arn'
698697 Runtime : python3.8
699- Timeout : ' 900'
698+ Timeout : 900
700699 VpcConfig : !If
701700 - ShouldRunInVPC
702701 - SecurityGroupIds :
You can’t perform that action at this time.
0 commit comments