Builds the O3 backend

Build: #21 failed

Job: Build and Publish the Backend Image failed

Stages & jobs

  1. Default Stage

Job result summary

Completed
Duration
31 seconds
Agent
xiao.openmrs.org
Revision
29f2d413cf54e91f1164e3f2ddf356fdeb6061ae 29f2d413cf54e91f1164e3f2ddf356fdeb6061ae
Fixed in
#28 (Code changes detected)
No failed test found. A possible compilation error occurred.

Error summary

The build generated some errors. See the full build log for more details.

Progress (1): 155/262 kB
Progress (1): 159/262 kB
Progress (1): 163/262 kB
Progress (1): 167/262 kB
Progress (1): 171/262 kB
Progress (1): 175/262 kB
Progress (1): 180/262 kB
Progress (1): 182/262 kB
Progress (1): 186/262 kB
Progress (1): 190/262 kB
Progress (1): 194/262 kB
Progress (1): 197/262 kB
Progress (1): 201/262 kB
Progress (1): 206/262 kB
Progress (1): 210/262 kB
Progress (1): 214/262 kB
Progress (1): 218/262 kB
Progress (1): 222/262 kB
Progress (1): 226/262 kB
Progress (1): 230/262 kB
Progress (1): 232/262 kB
Progress (1): 236/262 kB
Progress (1): 240/262 kB
Progress (1): 244/262 kB
Progress (1): 249/262 kB
Progress (1): 251/262 kB
Progress (1): 255/262 kB
Progress (1): 260/262 kB
Progress (1): 262 kB   
                   
Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/codehaus/plexus/plexus-utils/3.3.1/plexus-utils-3.3.1.jar (262 kB at 553 kB/s)
#19 12.26 Downloading from openmrs-repo-snapshots: https://mavenrepo.openmrs.org/snapshots/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/maven-metadata.xml
#19 12.39 Progress (1): 621 B
                   
Downloaded from openmrs-repo-snapshots: https://mavenrepo.openmrs.org/snapshots/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/maven-metadata.xml (621 B at 2.5 kB/s)
#19 12.52 Uploading to openmrs-repo-snapshots: https://mavenrepo.openmrs.org/snapshots/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/referenceapplication-3.0.0-20240321.132852-1358.pom
#19 12.52 Progress (1): 4.1/7.2 kB
Progress (1): 7.2 kB   
#19 ...

#13 [linux/arm64 dev  1/10] FROM docker.io/openmrs/openmrs-core:dev@sha256:0e2045c90b1cdf440f912577bf2a7efa8357b994793abf0330dfea9830488160
#13 extracting sha256:4762b9e4ed732dd2ccf2ba3e0fd0d8afac7eb26fc7be7c7b08440b3477707630 10.4s done
#13 extracting sha256:6fdb1b6bbb008937a8d14368b3d24a2ce896e33fd0db867cb770af75d4b0c4d3 3.4s done
#13 extracting sha256:cdf03ec0258559f619d37eaa4c59d357baa68e52686f25f97f9833894c71d1df 0.8s done
#13 DONE 29.1s

#20 [linux/arm64 dev  2/10] WORKDIR /openmrs_distro
#20 DONE 0.1s

#19 [linux/amd64 dev  5/10] RUN --mount=type=secret,id=m2settings,target=/root/.m2/settings.xml if [[ "deploy" != "deploy" || "$(arch)" = "x86_64" ]]; then mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro deploy; else mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro install; fi
#19 12.52 Progress (1): 4.1/7.2 kB
Progress (1): 7.2 kB   
                   
[INFO] ------------------------------------------------------------------------
#19 13.08 [INFO] Reactor Summary for Package and Run OpenMRS 3.0.0-SNAPSHOT:
#19 13.08 [INFO]
#19 13.08 [INFO] Package and Run OpenMRS ............................ FAILURE [  9.996 s]
#19 13.08 [INFO] OpenMRS distro ..................................... SKIPPED
#19 13.08 [INFO] ------------------------------------------------------------------------
#19 13.08 [INFO] BUILD FAILURE
#19 13.08 [INFO] ------------------------------------------------------------------------
#19 13.08 [INFO] Total time:  10.375 s
#19 13.08 [INFO] Finished at: 2024-03-21T13:29:02Z
#19 13.08 [INFO] ------------------------------------------------------------------------
#19 13.08 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0:deploy (default-deploy) on project referenceapplication: Failed to deploy artifacts: Could not transfer artifact org.openmrs.distro:referenceapplication:pom:3.0.0-20240321.132852-1358 from/to openmrs-repo-snapshots (https://mavenrepo.openmrs.org/snapshots): authentication failed for https://mavenrepo.openmrs.org/snapshots/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/referenceapplication-3.0.0-20240321.132852-1358.pom, status: 401 Unauthorized -> [Help 1]
#19 13.08 [ERROR]
#19 13.08 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#19 13.08 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#19 13.08 [ERROR]
#19 13.08 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#19 13.08 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
#19 ERROR: 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

#21 [linux/arm64 dev  3/10] COPY pom.xml ./
#21 DONE 0.1s

#22 [linux/arm64 dev  4/10] COPY distro ./distro/
#22 CANCELED
------
> [linux/amd64 dev  5/10] RUN --mount=type=secret,id=m2settings,target=/root/.m2/settings.xml if [[ "deploy" != "deploy" || "$(arch)" = "x86_64" ]]; then mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro deploy; else mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro install; fi:
#19 13.08 [INFO] Total time:  10.375 s
#19 13.08 [INFO] Finished at: 2024-03-21T13:29:02Z
#19 13.08 [INFO] ------------------------------------------------------------------------
#19 13.08 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0:deploy (default-deploy) on project referenceapplication: Failed to deploy artifacts: Could not transfer artifact org.openmrs.distro:referenceapplication:pom:3.0.0-20240321.132852-1358 from/to openmrs-repo-snapshots (https://mavenrepo.openmrs.org/snapshots): authentication failed for https://mavenrepo.openmrs.org/snapshots/org/openmrs/distro/referenceapplication/3.0.0-SNAPSHOT/referenceapplication-3.0.0-20240321.132852-1358.pom, status: 401 Unauthorized -> [Help 1]
#19 13.08 [ERROR]
#19 13.08 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#19 13.08 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#19 13.08 [ERROR]
#19 13.08 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#19 13.08 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
------
Dockerfile:15
--------------------
  13 |     
  14 |     # Build the distro, but only deploy from the amd64 build
  15 | >>> RUN --mount=type=secret,id=m2settings,target=/root/.m2/settings.xml if [[ "$MVN_ARGS" != "deploy" || "$(arch)" = "x86_64" ]]; then mvn $MVN_ARGS_SETTINGS $MVN_ARGS; else mvn $MVN_ARGS_SETTINGS install; fi
  16 |     
  17 |     RUN cp /openmrs_distro/distro/target/sdk-distro/web/openmrs.war /openmrs/distribution/openmrs_core/
--------------------
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