Skip to content

(pipelines): Specifying variable namespace for pipelines.CodeBuildStep #15943

@markusl

Description

@markusl

We are currently looking into the new pipelines API but I cannot seem to find a way to specify variable namespace for pipelines.CodeBuildStep. Is this implemented or is this a missing feature from the new API?

Use Case

We would like to execute commands and use their outputs in the CodePipeline:

const command = new pipelines.CodeBuildStep('customaction', {
    partialBuildSpec: ...,
    commands: [],
  });
props.stageDeployment.addPost(command);

const variableName = command.variable('OUTPUT_NAME');

Proposed Solution

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/pipelinesCDK Pipelines libraryeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions