aws-codebuild : secondary source don't seem to register webhook #27563
Labels
@aws-cdk/aws-codebuild
Related to AWS CodeBuild
effort/medium
Medium work item – several days of effort
feature/coverage-gap
Gaps in CloudFormation coverage by L2 constructs
feature-request
A feature should be added or improved.
p3
Describe the bug
While trying to leverage the ability to attach 2 or more GitHub sources, using
codebuild.Source.git_hub()
, to a project I found that the webhooks in the secondary source array are never registered.Modifications to the code in the first source will trigger a new build, however nothing will happen if any of the secondary sources are modified.
Expected Behavior
Because the secondary source array expects a ISource and I didn't find any documented restrictions, I would have expected the secondary source to behave similar to the primary source : i.e. it would register a webhook with the source and trigger a build when the source is updated.
Current Behavior
A look at the resulting Project in the console shows the secondary source being created as a GitHub source, but a few things seems weird :
I can confirm that the secondary source is properly defined by switching it to being the primary -- in that case the webhook gets registered properly and I receive the notifications from that source.
Reproduction Steps
Unfortunately don't have a self-contained snippet or something that would work against a public repo but here's a snippet of what I am using :
Possible Solution
Not sure but the source declared as the primary source works well, so not sure why that's not happening for the ones in the secondary sources array.
Additional Information/Context
No response
CDK CLI Version
2.99.1 (build b2a895e)
Framework Version
2.95.1
Node.js Version
v20.6.0
OS
Debian slim bookworm (12.0)
Language
Python
Language Version
3.11
Other information
No response
The text was updated successfully, but these errors were encountered: