-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(aws-codebuild): allow github sourceversion branch #5890
feat(aws-codebuild): allow github sourceversion branch #5890
Conversation
Addresses issue #5777.Users may want to specify which github branch a codebuild should use as its source. Currently the branch always defaults to 'master', but users may want to test features in development on other branches
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @knorms101 , it's great! I have a few small comments.
From looking at the docs of this feature in http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html#cfn-codebuild-project-sourceversion , I see this also works for CodeCommit, BitBucket and S3. Do you have time to add those as well? (S3 probably should be called version
instead of branch
).
Thanks!
Thanks for the feedback, @skinny85! I agree that it would be great to include this option for the other CodeBuild sources too. I'll work on adding that next week. |
Awesome, thanks so much for taking the time to work on this! ❤️ |
…//github.com/knorms101/aws-cdk into knorms/codebuild-sourceversion-github-branch
Pull request has been modified.
Hi @skinny85 I finally had a chance to continue working on this. I added the optional |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @knorms101 !
We're getting closer, but there are a few things that need changing still.
Let me know what you think of the name branchOrRef
for the Git-based sources!
packages/@aws-cdk/aws-codebuild/test/integ.project-secondary-sources-artifacts.expected.json
Outdated
Show resolved
Hide resolved
…unused property. only render secondary sources versions when present.
Pull request has been modified.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fantastic @knorms101 ! If you could get rid of a tiny piece of duplication, it will be perfect 😃
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @knorms101 !
Thank you for contributing! Your pull request is now being automatically merged. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request is now being automatically merged. |
Addresses issue #5777.
Allows users to specify which GitHub branch a CodeBuild should use as its Source Version. Currently the branch always defaults to 'master', but users may want to test features on other branches
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license