Description
Summary
When trying to publish artifacts from a remote agent on Bamboo Cloud the Build log shows the message:
Unable to publish artifact [Artifact-name]: Unable to publish artifact Shared artifact: [Artifact-name], pattern: [**/*]
The Remote Agent logs at atlassian-bamboo-agent.log log a 403 error.
Environment
- Bamboo Cloud
- Remote Agents
Steps to Reproduce
- Create a new remote agent and authorise it with your cloud instance
- Create a plan containing a script that touches a file
# creates a new file touch executable.jar # list files ls -l
- Set up a new artifact definition
Name: myArtifact Location: Copy pattern: executable.jar [x] Shared
- Run the build
Expected Results
Artifact is published
Actual Results
The below exception is thrown in the atlassian-bamboo-agent.log file:
INFO | jvm 1 | 2015/12/16 17:20:21 | 2015-12-16 17:20:21,317 INFO [2-BAM::1.1.1.1::Agent:pool-5-thread-1 ] [AbstractArtifactManager] Publishing [myArtifact] for BBT-YEAP-JOB1-3: 1 file(s) matching [*] in directory /Users/username/bamboo -agent-home/xml-data/build-dir/BBT-YEAP-JOB1 INFO | jvm 1 | 2015/12/16 17:20:21 | 2015-12-16 17:20:21,318 INFO [2-BAM::1.1.1.1::Agent:pool-5-thread-1 ] [AbstractArtifactManager] Trying to publish the artifact with handler: com.atlassian.bamboo.build.artifact.BambooRemoteArtifactH andler INFO | jvm 1 | 2015/12/16 17:20:22 | 2015-12-16 17:20:22,266 INFO [2-BAM::1.1.1.1::Agent:pool-5-thread-1 ] [BambooArtifactHttpTransport] Finished writing the artifact to the output stream. INFO | jvm 1 | 2015/12/16 17:20:22 | 2015-12-16 17:20:22,433 ERROR [2-BAM::1.1.1.1::Agent:pool-5-thread-1] [BambooArtifactHttpTransport] Unexpected HTTP status code: HTTP/1.1 403 Forbidden INFO | jvm 1 | 2015/12/16 17:20:22 | 2015-12-16 17:20:22,433 INFO [2-BAM::1.1.1.1::Agent:pool-5-thread-1] [AbstractArtifactManager] Handler com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler did not publish the artifact
Workaround
Use Amazon S3 artifact storage until this bug is fixed