awslabs / awslabs/aws-codebuild-jenkins-plugin

Cannot override secondary artifact name

Open
#115 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
156
Forks
130
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

Reproduce the shown artifactTypeOverride and secondaryArtifactsOverride configuration in the Jenkins CodeBuild build step, then trace how the secondary artifact name override is handled. Done means the secondary artifact is emitted as bar.zip rather than the buildspec name, while remaining a ZIP archive.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
ci-cd, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.