Skip to content
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

fix(pipeline): fix feature branch pipeline creation for bare PDKPipel… #543

Merged
merged 4 commits into from
Sep 8, 2023
Merged

fix(pipeline): fix feature branch pipeline creation for bare PDKPipel… #543

merged 4 commits into from
Sep 8, 2023

Conversation

jstrunk
Copy link
Contributor

@jstrunk jstrunk commented Aug 23, 2023

…inePyProject

This fixes the CodeBuild buildspec that creates feature branch pipelines by preventing the inclusion of a "cd " command in before running cdk synth.

Changes:

  • Add an optional cdkSrcDir prop to PDKPipeline in case the assumption that cdk.out and cdk.json are in the same directory is incorrect for the project.
  • Use path.dirname() to determine the default cdkSrcDir from the primarySynthDir to handle the case that it is the project root.

I tested this with a prerelease package in CodeArtifact.

Fixes #462

jstrunk and others added 4 commits August 22, 2023 15:15
…inePyProject

This fixes the CodeBuild buildspec that creates feature branch pipelines by preventing the
inclusion of a `"cd "` command in before running `cdk synth`.

Changes:
 * Add an optional `cdkSrcDir` prop to `PDKPipeline` in case the assumption that `cdk.out`
and `cdk.json` are in the same directory is incorrect for the project.
 * Use `path.dirname()` to determine the default `cdkSrcDir` from the `primarySynthDir`
to handle the case that it is the project root.

fix #462
@agdimech
Copy link
Contributor

agdimech commented Sep 7, 2023

I really like the fact that you are testing with CodeArtifact. I have a planned feature #548 which will add native capability to the PDK to accomplish this in JAVA/PY/NPM.

@agdimech agdimech merged commit 2163f85 into aws:mainline Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] pipeline: feature branch pipeline creation fails for bare PDKPipelinePyProject
2 participants