"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/bootstra
p.inc): Failed to open stream: No such file or directory.
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.