Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline failing due to atlassian classes not found issue

Bhavani Ramalingan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 9, 2024

 

"composer validate --no-check-all --ansi in /opt/atlassian/pipelines/agent/build"

above command failed due to the classes are not found. 

 

In AutoloadGenerator.php line 1396:
require(/opt/atlassian/pipelines/agent/build/docroot/core/includes/bootstrap.inc): Failed to open stream: No such file or directory.

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 12, 2024

Hi Bhavani and welcome to the community!

Just to give you some context, Pipelines builds run in Docker containers. For every step of your build, a Docker container starts (the build container) using the image you have specified in your bitbucket-pipelines.yml file. The repo is cloned in the build container, and then the commands of the step's script are executed. When the step finishes that Docker container gets destroyed.

Build errors may be related to your source code, any dependencies you use, or the Docker image you use as a build container. You can narrow down whether this is a pipelines-specific issue by reproducing the build locally with Docker, using the following guide:

Just make sure you replace the path /opt/atlassian/pipelines/agent/build in the command with the path where your repo's clone exists in the local Docker container. If the build fails when you rerproduce locally with Docker as well, then the issue is not specific to Pipelines. You'll need to debug this further until you have a build that succeeds locally, so it can also run on Pipelines.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events