3
votes

I'm setting a continuous delivery system using Bitbucket, Jenkins, and AWS Elastic Beanstalk.

I've got an issue where it appears the Bitbucket integration I've setup following this article is only building the master branch. Without direct support in Code Pipeline, like Github and AWS CodeCommit, I'm not sure how to setup builds with specific branches such as develop or release candidate branches.

Is it possible to indicate which branch should be built in CodePipeline from an S3 zip of the repository?

3

3 Answers

1
votes

I think you can replace "master" in s3://git-to-codepipeline-us-east-1/v1.0/GitPullS3.zip with your branch. And using your new GitPullS3.zip in your Lambda function instead of the original one.

0
votes

I think you will need to replace the string "master" in lambda_function.py file in the zip found at s3://git-to-codepipeline-us-east-1/v1.0/GitPullS3.zip (use correct bucket based on the region you are working on) , and create a new zip and upload it to S3. And, then use this new S3 file in your GitPull lambda function (you can update the CloudFormation stack to use your new S3 file in the GitPull Lambda function).