File tree Expand file tree Collapse file tree
LambdaRuntimeDockerfiles/Infrastructure/src/Infrastructure Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ internal PipelineStack(
3737 string gitHubOwner ,
3838 string gitHubRepository ,
3939 string gitHubBranch ,
40+ string pipelineName ,
4041 IStackProps props = null ) : base ( scope , id , props )
4142 {
4243 var sourceArtifact = new Artifact_ ( ) ;
@@ -65,7 +66,7 @@ internal PipelineStack(
6566 var pipeline = new Pipeline ( this , "CodePipeline" , new PipelineProps
6667 {
6768 PipelineType = PipelineType . V2 ,
68- PipelineName = id ,
69+ PipelineName = pipelineName ,
6970 RestartExecutionOnUpdate = true ,
7071 Stages =
7172 [
Original file line number Diff line number Diff line change @@ -38,13 +38,19 @@ private void CreatePipelinesForRepository(
3838 {
3939 for ( var i = 0 ; i < configuration . Frameworks . Length ; i ++ )
4040 {
41+
42+ var pipelineName = string . IsNullOrEmpty ( pipelinePrefix )
43+ ? $ "{ configuration . ProjectName } -{ configuration . Frameworks [ i ] . Framework } " // "aws-lambda-container-images-net8"
44+ : $ "{ configuration . ProjectName } -{ pipelinePrefix } -{ configuration . Frameworks [ i ] . Framework } "; // "aws-lambda-container-images-staging-net8"
45+
4146 new PipelineStack ( this ,
4247 $ "{ pipelinePrefix } -{ configuration . Frameworks [ i ] . Framework } ",
4348 configuration ,
4449 configuration . Frameworks [ i ] ,
4550 gitHubOwner ,
4651 gitHubRepository ,
4752 gitHubBranch ,
53+ pipelineName ,
4854 new StackProps
4955 {
5056 TerminationProtection = true ,
You can’t perform that action at this time.
0 commit comments