Problem
Builds fail due to the artifact having a colon on the name after upgrading Bamboo from V7.2 to V8.1.1
Steps to Reproduce
- On Bamboo V7.2, create build plans with artifacts that contain a colon ":" on the name.
- Run the build on a Windows OS agent. Build run successfully.
- Upgrade Bamboo to V8.1.1 and run the same build with artifacts. It fails, indicating an illegal char <:>.
- Rename the artifact, run the build once again. Build run successfully.
This error only occurs when running a Windows OS agent, same error does not happen on other OS.
Actual Results
Bamboo V7.2 - Build plan successfully worked prior to the upgrade:
simple 17-Jan-2022 16:12:39 Publishing an artifact: cool:file simple 17-Jan-2022 16:12:40 Finished publishing of artifact Required shared artifact: [cool:file], pattern: [coolfile.txt] in 204.9 ms
Bamboo 8.1.1 - Build plan failed after the upgrade:
18-Jan-2022 20:36:29 com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler: Illegal char <:> at index 119: C:\Users\admin\bamboo-agent-home\xml-data\build-dir\temporaryArtifactStorage\remote\plan-622593\shared\build-00003\cool:file 18-Jan-2022 20:36:29 Unable to publish artifact [cool:file]: Unable to publish artifact Required shared artifact: [cool:file], pattern: [coolfile.txt] for PROJ-IZ-JOB1-3 via com.atlassian.bamboo.build.artifact.BambooRemoteArtifactHandler@457c33cd 18-Jan-2022 20:36:29 The artifact is required, build will now fail.
Workaround
Rename the artifacts.