Skip to content

Cannot override secondary artifact name #115

@Jasper-Ben

Description

@Jasper-Ben

According to documentation, the following artifacts should be stored in an identical matter:

[...]
                                artifactTypeOverride: 'S3',
                                artifactLocationOverride: "${S3_BUCKET}",
                                artifactPathOverride: "${PATH}",
                                artifactNamespaceOverride: 'NONE',
                                artifactNameOverride: "foo.zip",
                                artifactPackagingOverride: 'ZIP',
                                secondaryArtifactsOverride: """[
                                    {
                                        "artifactIdentifier": "sources",
                                        "type": "S3",
                                        "location": "${S3_BUCKET}",
                                        "path": "${PATH}",
                                        "namespaceType": "NONE",
                                        "name": "bar.zip",
                                        "overrideArtifactName": "true",
                                        "packaging": "ZIP"
                                    }
                                ]""",
[...]

However, while the main artifact is correctly renamed to foo.bar, the secondary artifact name remains as defined in the codebuild buildspec. Running file on the secondary artifact shows that it is a zip archive, so it is just the naming part that's not working.

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