Pipeline add CodeBuildAction #25650
Answered
by
peterwoodworth
HannesOberreiter
asked this question in
Q&A
-
Hi, I try to reference an existing CodeBuild project and add it to my pipeline as separate stage. But currently stuck how to connect it as I can only add steps. const testPipeline = pipeline.addWave('Test');
const testProject = PipelineProject.fromProjectArn(
this,
'e2e',
'arn:aws:codebuild:eu-central-1:XXXX:project/buildspec-e2e-local-cache'
);
const e2eAction = new CodeBuildAction({
actionName: 'e2e',
project: testProject,
input: new Artifact(),
outputs: [new Artifact()],
});
testPipeline.addPost(e2eAction); // This wont work as the action is not a stage Any help is appreciated! Cheers |
Beta Was this translation helpful? Give feedback.
Answered by
peterwoodworth
May 22, 2023
Replies: 2 comments 2 replies
-
Hi @HannesOberreiter , To add an existing CodeBuild project to your pipeline as a separate stage, you can use the following steps:
Let me know if this helps! |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@HannesOberreiter coming here from the other thread. I think this snippet fell into the pitfall I described here where there are two similar libraries with the same name for stuff. See my comment here, I linked to the documentation where we describe how to add any arbitrary action to a stage when using our high level
pipelines
library