Skip to content

fix(pipelines): CodeBuildStep.partialBuildSpec not used, buildspec control for legacy API#15625

Merged
mergify[bot] merged 8 commits intoaws:masterfrom
hoegertn:hoegertn-buildspec-props
Jul 19, 2021
Merged

fix(pipelines): CodeBuildStep.partialBuildSpec not used, buildspec control for legacy API#15625
mergify[bot] merged 8 commits intoaws:masterfrom
hoegertn:hoegertn-buildspec-props

Conversation

@hoegertn
Copy link
Copy Markdown
Contributor

this fixes #15169


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jul 17, 2021

@rix0rrr rix0rrr changed the title feat(pipelines): full control over BuildSpec for legacy pipelines fix(pipelines): CodeBuildStep.partialBuildSpec not used, buildspec control for legacy API Jul 19, 2021
rix0rrr
rix0rrr previously approved these changes Jul 19, 2021
@rix0rrr rix0rrr self-requested a review July 19, 2021 10:33
@rix0rrr rix0rrr dismissed their stale review July 19, 2021 10:33

Needs a change

rix0rrr
rix0rrr previously approved these changes Jul 19, 2021
@mergify mergify bot dismissed rix0rrr’s stale review July 19, 2021 12:20

Pull request has been modified.

phases: {
pre_build: {
commands: ['installCustom', 'install1', 'install2'],
commands: arrayWith('installCustom'),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does no longer validate the ordering...

},
},
});
this.buildSpec = props.buildSpec ? codebuild.mergeBuildSpecs(props.buildSpec, buildSpec) : buildSpec;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the idea is that the user can augment the existing build spec, but not override anything. Is that it?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely. Some things may be overwritten, but in general they will be merged.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's true. Objects and arrays will be merged. But for primitives (let's say, run-as), the one generated by the action has precedence over the one provided by the user.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 19, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 03b6c0b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit d8dc818 into aws:master Jul 19, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 19, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@alexpulver
Copy link
Copy Markdown
Contributor

@hoegertn it worked for me now, thanks!

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Aug 3, 2021
…control for legacy API (aws#15625)

this fixes aws#15169

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…control for legacy API (aws#15625)

this fixes aws#15169

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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.

(pipelines): need full control of BuildSpec

5 participants