diff --git a/lib/pipeline.ts b/lib/pipeline.ts index 584339d9..c2a8f7b0 100644 --- a/lib/pipeline.ts +++ b/lib/pipeline.ts @@ -21,6 +21,12 @@ export interface PipelineProps { */ title?: string; + /** + * A physical name for this pipeline. + * @default a new name will be generated. + */ + pipelineName?: string; + /** * Branch to build. * @default master @@ -97,6 +103,7 @@ export class Pipeline extends cdk.Construct { super(parent, name); this.pipeline = new cpipeline.Pipeline(this, 'BuildPipeline', { + pipelineName: props.pipelineName, restartExecutionOnUpdate: props.restartExecutionOnUpdate === undefined ? true : props.restartExecutionOnUpdate }); @@ -293,4 +300,4 @@ function renderEnvironmentVariables(env?: { [key: string]: string }) { out[key] = { value }; } return out; -} \ No newline at end of file +}