-
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: additionalInputs documentation is lacking in detail #30188
Comments
Here's an example that showcases the two issues above. The documentation's example could be changed to incorporate elements from this example. This example also illustrates that it is not necessary to have all source code repositories as input for the synth step. A
|
Thank you for bringing this to our attention. Yes we should improve the doc to get it clarified. Would you like to submit a PR for this? |
There also seems to be some issue with |
@pahud Wouldn't it be fitting for the AWS engineers responsible for I assume they are the ones most familiar with the idiosyncrasies of their implementation. |
Describe the issue
We have one repository with tooling and another repository with application code to be analyzed. This seems to fit with using toolingRepo as the main input and appRepo as an additionalInput. However, the documentation does not have enough detail to set this up correctly without trial and failure.
At first attempt I got the error message
Google led me to #17224 which is unhelpful, because the error message was actually true: The sibling directory
app-repo
did indeed exist.It turns out CodePipeline action provider "GitHub (Version 2)" and CodePipeline action input artifacts works together to put the repository source code in a sibling directory named the same as the repository. So the documentation may mention something like:
Once I had understood the above, my next task failed because a file was not found. It appears that when there are multiple source repositories, any step that does not explicitly set its
input
will just get one of them, including ones used inadditionalInputs
. So the documentation might make it clear:Links
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines-readme.html#additional-inputs
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.ShellStepProps.html#additionalinputs
The text was updated successfully, but these errors were encountered: