The Git branch associated with the pipeline cannot be found

  • Error message: Invalid pipeline: XXXXXX. Reason=Branch=xxxx not found in repository.
    Invalid pipeline: XXXXXX. Reason=Branch=xxxx not found in repository
  • Cause: The Git branch the pipeline is configured to use has been deleted.
  • Resolution: Re-create the missing Git branch using the exact same name, or re-configure the pipeline to build from a different, existing branch.

Build & Unit Testing

Build and Unit Testing

The Build and Unit Testing phase performs a Maven build (mvn clean package) of the project checked out from the pipeline’s configured Git branch.

Errors identified in this phase should be re-producible building the project locally, with the following exceptions:

  • A maven dependency not available on Maven Central is used, and the Maven repository containing the dependency is either:

    • Unreachable from Cloud Manager, such as a private internal Maven repository, or the Maven repository requires authentication and the incorrect credentials have been provided.
    • Not explicitly registered in the project’s pom.xml. Note that, including Maven repositories is discouraged as it increases build times.
  • Unit tests fail due to timing issues. This may occur when unit tests are timing-sensitive. A strong indicator is relying on .sleep(..) in the test code.

  • The use of unsupported Maven plugins.