All selected work

Linux · CI/CD

The Bamboo migration.

The old Bamboo version was out of support. The hardware was being retired. The build agents were still on RHEL 6. The builds had to keep running.

The build that got stuck

One business-critical pipeline compiled C++ inside a multi-stage Docker build. Later steps needed files from inside the build stage, including the compilation database for static analysis. The final image didn’t carry them, and the Dockerfile was only partly under my control.

What I did

The agents used Docker’s overlay2 driver. I worked out where the intermediate files were still available on the host, recovered the required artifacts and build workspace, and integrated that recovery into the Bamboo job. Once tested and deployed, the normal build sequence continued automatically.

The workaround depended on that particular storage driver, the layout of the workspace and when the job ran. I wrote up those limits alongside the implementation in “Docker Wouldn’t Give Me My Build Artifacts. So I Stole Them from OverlayFS.”