Bamboo Build fails with Exception "No such file or directory"

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

The Bamboo Plan has following configuration

  1. There is a "Source Code Checkout Task" which checks out two repositories.
  2. During the build process, following exception is thrown
cp: cannot stat 'C:\Users\bamboo\bamboo-agent-home\xml-data\build-dir\PRO-PLA-JOB1/bamboo-repo//build_task.py': No such file or directory


Environment

Issue seen on Bamboo 8.0.4.

Diagnosis

  • Bamboo build fails post Source code Checkout task is completed Successfully. In the logs following exception is seen.
cp: cannot stat 'C:\Users\bamboo\bamboo-agent-home\xml-data\build-dir\TGC-UD-JOB1/bamboo-utils//clang_format_to_junit.py': No such file or directory


Cause

  • The problem is related to the way the Source code checkout task is configured for both the repositories. Please see below for the second repository where the checkout directory is not mentioned.

  • The Build script is written in such a way that it expects both the repositories to be checked out at the same directory. 

Solution

  • The solution is to mention the same Checkout Directory for the second repository which is part of Source code checkout Task. 


Last modified on May 30, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.