-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
pipelines: unable to reference GitLab repositories nested under a group with CodePipelieneSource.connection #27504
Comments
Thanks for the request, this bug makes sense and it should be an easy fix |
I'd like to work on this issue |
I was happy reading this https://aws.amazon.com/about-aws/whats-new/2023/08/aws-codepipeline-supports-gitlab/ and was struggling with CDK finally finding this issue. Hope it will be fixed soon :) |
Hey. CDK Team how it's going with fixing that issue? |
This sounds like an amazing feature for GitLab users (including myself). I'd love to see that happen, especially that there already was a MR for that. |
Is there any update on this? |
### Issue # (if applicable) Closes #27504 ### Reason for this change The current validation of `repoString` in constructor of `CodeStarConnectionSource` does not support nested repository that can appear in GitLab. ### Description of changes The validation is fixed to accept nested repository. ### Description of how you validated changes I added unit tests and confirmed all tests passed. ### Checklist - [X] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Describe the bug
GitLab repositories that are nested under at least one group cannot be directly with
CodePipelineSource.connection
as it limits repositories to the form<owner>/<repo>
. GitLab includes the group names in the repository string, falling outside this format (i.e.owner/group1/group2/groupN/repo
).Expected Behavior
I expect the pipeline to synthesize successfully when sourcing from a
CodePipelineSource.connection
that references a GitLab repository nested under multiple groups.Current Behavior
The following error is thrown:
This error is from
aws-cdk-lib/pipelines/lib/codepipeline/codepipeline-source.ts
line 429.Reproduction Steps
Possible Solution
Additional Information/Context
No response
CDK CLI Version
2.100.0 (build e1b5c77)
Framework Version
No response
Node.js Version
v18.17.1
OS
Ubuntu 20.04.6 LTS
Language
Python
Language Version
Python 3.8.10
Other information
As a workaround until this is fixed, you can manually re-implement
CodeStarConnectionSource
to include the above changes and instantiate directly.The text was updated successfully, but these errors were encountered: