Builds the O3 backend

Build: #248 failed Manual run by Rafal Korytkowski

Logs

The following logs have been generated by the jobs in this plan.
  • Expand all
  • Collapse all
Job Logs
Collapse Build and Publish the Backend Image Without Demo Content Default Stage Download or View
05-Dec-2025 09:52:50 #23 156.3 Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/metadatamapping-omod/2.0.0-SNAPSHOT/maven-metadata.xml (1.2 kB at 7.1 kB/s)
05-Dec-2025 09:52:50 #23 156.3 Downloading from sonatype-nexus-snapshots: https://central.sonatype.com/repository/maven-snapshots/org/openmrs/module/metadatamapping-omod/2.0.0-SNAPSHOT/maven-metadata.xml
05-Dec-2025 09:52:51 #23 CANCELED
05-Dec-2025 09:52:51 ------
05-Dec-2025 09:52:51 > [linux/amd64 dev  5/11] RUN --mount=type=secret,id=m2settings,target=/usr/share/maven/ref/settings-docker.xml if [[ "install -Pno-demo" != "deploy" || "$(arch)" = "x86_64" ]]; then mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro install -Pno-demo; else mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro install; fi:
05-Dec-2025 09:52:51 167.0 [ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:6.1.0-SNAPSHOT:build-distro (openmrs-sdk:build-distro) on project distro-emr-configuration: Execution openmrs-sdk:build-distro of goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:6.1.0-SNAPSHOT:build-distro failed: Index -1 out of bounds for length 1 -> [Help 1]
05-Dec-2025 09:52:51 167.0 [ERROR]
05-Dec-2025 09:52:51 167.0 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
05-Dec-2025 09:52:51 167.0 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
05-Dec-2025 09:52:51 167.0 [ERROR]
05-Dec-2025 09:52:51 167.0 [ERROR] For more information about the errors and possible solutions, please read the following articles:
05-Dec-2025 09:52:51 167.0 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
05-Dec-2025 09:52:51 167.0 [ERROR]
05-Dec-2025 09:52:51 167.0 [ERROR] After correcting the problems, you can resume the build with the command
05-Dec-2025 09:52:51 167.0 [ERROR]   mvn <args> -rf :distro-emr-configuration
05-Dec-2025 09:52:51 ------
05-Dec-2025 09:52:51 Dockerfile:16
05-Dec-2025 09:52:51 --------------------
05-Dec-2025 09:52:51   14 |     ARG CACHE_BUST
05-Dec-2025 09:52:51   15 |     # Build the distro, but only deploy from the amd64 build
05-Dec-2025 09:52:51   16 | >>> RUN --mount=type=secret,id=m2settings,target=/usr/share/maven/ref/settings-docker.xml if [[ "$MVN_ARGS" != "deploy" || "$(arch)" = "x86_64" ]]; then mvn $MVN_ARGS_SETTINGS $MVN_ARGS; else mvn $MVN_ARGS_SETTINGS install; fi
05-Dec-2025 09:52:51   17 |     
05-Dec-2025 09:52:51   18 |     RUN cp /openmrs_distro/distro/target/sdk-distro/web/openmrs_core/openmrs.war /openmrs/distribution/openmrs_core/
05-Dec-2025 09:52:51 --------------------
05-Dec-2025 09:52:51 ERROR: failed to solve: process "/bin/sh -c if [[ \"$MVN_ARGS\" != \"deploy\" || \"$(arch)\" = \"x86_64\" ]]; then mvn $MVN_ARGS_SETTINGS $MVN_ARGS; else mvn $MVN_ARGS_SETTINGS install; fi" did not complete successfully: exit code: 1