The remote agent handler should fail to publish an artifact if there are no files that match the specified pattern. If no match is found an empty artifact is published and the job is considered to succeed.
- Create a Job that has a shared/ required artifact matching "*.zip"
- specify that remote agent handler should be used for shared artifacts.
- run job on remote agent
If the artifact does not match any files we would expect the artifact to fail to publish as is seen with the local artifact handler.
In the logs on the remote agent atlassian-bamboo.log file we see that the artifact is successfully published:
Currently there is no known workaround for this behavior. A workaround will be added here when available