-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: artifact-manager-s3-plugin, copyartifact-plugin
-
None
-
Environment:Jenkins 2.516.1 LTS jre21 official container
Amazon ECS fargate task / On Prem deployment in docker-compose stack.
Artifact Manager on S3: 949.v2567c4c52d79
Copy Artifact Plugin: 770.va_6c69e063442
When attempting to `copyArtifacts` using S3 manager, only the first matching glob in a list is copied when the filter contains whitespace after comma.
Example:
copyArtifacts( Â filter: '**/*file*.bin, **/*log*.bin, **/*data*.bin, **/*record*.bin', Â fingerprintArtifacts: true, Â flatten: true, Â projectName: 'artifact-producer', Â selector: lastSuccessful() )
Removing the "optional whitespace" as documented in https://github.com/jenkinsci/copyartifact-plugin/blob/770.va_6c69e063442/src/main/resources/hudson/plugins/copyartifact/CopyArtifact/help-filter.html correctly downloads all matching artifacts.
This behavior was only seen when the S3 artifact manager was enabled and is not observed with the built-in artifact management.
Workaround:
It's simple enough to remove the whitespace either by modifying Jenksfiles or using a shared-library to wrap `copyArtifacts`, but in our case we have a substantial number of Jenkinsfiles that would have to be changed to workaround.