Skip to content

CodeBuild BuildSpec is not updated correctly #288

@MarkusMOtto

Description

@MarkusMOtto

Hi,

I am working with an ERC Repository which has its tags set to immutable. When I first set it as a destination, the build runs fine. As soon as I change the Tag (i.e. from "v1.0.0" to "v1.1.0"), CodeBuild fails. After some investigation, the CodeBuild Buildspec still lists the tag "v1.0.0". The new tag is set correctly in the code. This makes changing tags automatically impossible, as the CodeBuild BuildSpec has to be updated manually or deleted manually for each tag change.

Either the change to the BuildSpec is not recognized by cdk, or there is no update at all. Is there a way to force recreation of the BuildSpec, or would it be possible to add some config hash so the cdk recognizes the change?

I am using:
Python 10 for source
node 18.0.0
cdk 2.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions