OpenMRS Core Master

Build: #3182 failed

Job: Deploy to docker failed

Stages & jobs

  1. Build

  2. Test

  3. Deploy

  4. Release

    Requires a user to start manually

Job result summary

Completed
Duration
22 seconds
Revision
f08d5c40df4f2ea48196639692b41309f9301e2e f08d5c40df4f2ea48196639692b41309f9301e2e
Fixed in
#3185 (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.


#48 [linux/amd64 dev  9/30] COPY liquibase/pom.xml ./liquibase/
#48 CACHED

#49 [linux/amd64 dev  3/30] RUN if [ "amd64" = "arm64" ] ; then TINI_URL="https://github.com/krallin/tini/releases/download/v0.19.0/tini-arm64" TINI_SHA=07952557df20bfd2a95f9bef198b445e006171969499a1d361bd9e6f8e5e0e81 ; fi     && curl -fsSL -o /usr/bin/tini https://github.com/krallin/tini/releases/download/v0.19.0/tini     && echo "93dcc18adc78c65a028a84799ecf8ad40c936fdfc5f2a57b1acda5a8117fa82c  /usr/bin/tini" | sha256sum -c     && chmod +x /usr/bin/tini
#49 CACHED

#50 [linux/amd64 dev 12/30] COPY api/pom.xml ./api/
#50 CACHED

#51 [linux/amd64 dev 11/30] COPY test/pom.xml ./test/
#51 CACHED

#52 [linux/amd64 dev 10/30] COPY tools/pom.xml ./tools/
#52 CACHED

#53 [linux/amd64 dev 14/30] COPY webapp/pom.xml ./webapp/
#53 CACHED

#54 [linux/amd64 dev 15/30] RUN --mount=type=cache,target=/root/.m2 mvn --non-recursive install -DskipTests
#54 CACHED

#55 [linux/amd64 dev  8/30] RUN --mount=type=cache,target=/root/.m2 mvn org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:4.5.0:setup-sdk -N -DbatchAnswers=n
#55 CACHED

#56 [linux/amd64 dev  2/30] RUN yum -y update && yum -y install tar gzip git && yum clean all
#56 CACHED

#57 [linux/arm64 dev 18/30] COPY tools/ ./tools/
#57 CACHED

#58 [linux/amd64 dev 22/30] COPY api/ ./api/
#58 CACHED

#59 [linux/amd64 dev 23/30] RUN --mount=type=cache,target=/root/.m2 mvn -pl api install -DskipTests
#59 3.864 [INFO] Scanning for projects...
#59 4.523 [INFO]
#59 4.524 [INFO] --------------------< org.openmrs.api:openmrs-api >---------------------
#59 4.525 [INFO] Building openmrs-api 2.7.0-SNAPSHOT
#59 4.531 [INFO] --------------------------------[ jar ]---------------------------------
#59 6.664 [INFO]
#59 6.665 [INFO] --- buildnumber-maven-plugin:3.0.0:create (default) @ openmrs-api ---
#59 7.165 [INFO] ShortRevision tag detected. The value is '6'.
#59 7.181 [INFO] Executing: /bin/sh -c cd '/openmrs_core/api' && 'git' 'rev-parse' '--verify' '--short=6' 'HEAD'
#59 7.181 [INFO] Working directory: /openmrs_core/api
#59 7.332 [INFO] Storing buildNumber: 0 at timestamp: 1677757217951
#59 7.352 [WARNING] Cannot get the branch information from the git repository:
#59 7.352 Detecting the current branch failed: fatal: not a git repository (or any of the parent directories): .git
#59 7.352
#59 7.353 [INFO] ShortRevision tag detected. The value is '6'.
#59 7.353 [INFO] Executing: /bin/sh -c cd '/openmrs_core/api' && 'git' 'rev-parse' '--verify' '--short=6' 'HEAD'
#59 7.354 [INFO] Working directory: /openmrs_core/api
#59 7.367 [INFO] Storing buildScmBranch: UNKNOWN_BRANCH
#59 7.368 [INFO]
#59 7.368 [INFO] --- build-helper-maven-plugin:3.3.0:parse-version (parse-version) @ openmrs-api ---
#59 7.531 [INFO]
#59 7.531 [INFO] --- jacoco-maven-plugin:0.8.8:prepare-agent (prepare-agent) @ openmrs-api ---
#59 7.662 [INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.8.8/org.jacoco.agent-0.8.8-runtime.jar=destfile=/openmrs_core/api/target/jacoco.exec,includes=org/openmrs/** -Duser.language=en -Duser.region=US -Xmx1g -Djava.locale.providers=COMPAT
#59 7.663 [INFO]
#59 7.663 [INFO] --- maven-java-formatter-plugin:0.3:format (default) @ openmrs-api ---
#59 7.665 [WARNING] The POM for org.openmrs.tools:openmrs-tools:jar:2.7.0-SNAPSHOT is missing, no dependency information available
#59 7.708 [INFO] ------------------------------------------------------------------------
#59 7.711 [INFO] BUILD FAILURE
#59 7.712 [INFO] ------------------------------------------------------------------------
#59 7.718 [INFO] Total time:  3.909 s
#59 7.719 [INFO] Finished at: 2023-03-02T11:40:18Z
#59 7.719 [INFO] ------------------------------------------------------------------------
#59 7.721 [ERROR] Failed to execute goal com.googlecode.maven-java-formatter-plugin:maven-java-formatter-plugin:0.3:format (default) on project openmrs-api: Execution default of goal com.googlecode.maven-java-formatter-plugin:maven-java-formatter-plugin:0.3:format failed: Plugin com.googlecode.maven-java-formatter-plugin:maven-java-formatter-plugin:0.3 or one of its dependencies could not be resolved: Could not find artifact org.openmrs.tools:openmrs-tools:jar:2.7.0-SNAPSHOT -> [Help 1]
#59 7.724 [ERROR]
#59 7.725 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#59 7.725 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#59 7.725 [ERROR]
#59 7.725 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#59 7.725 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
#59 ERROR: process "/bin/sh -c mvn -pl api $MVN_ARGS" did not complete successfully: exit code: 1

#60 [linux/arm64 dev 19/30] RUN --mount=type=cache,target=/root/.m2 mvn -pl tools install -DskipTests
#60 CANCELED
------
> [linux/amd64 dev 23/30] RUN --mount=type=cache,target=/root/.m2 mvn -pl api install -DskipTests:
#59 7.718 [INFO] Total time:  3.909 s
#59 7.719 [INFO] Finished at: 2023-03-02T11:40:18Z
#59 7.719 [INFO] ------------------------------------------------------------------------
#59 7.721 [ERROR] Failed to execute goal com.googlecode.maven-java-formatter-plugin:maven-java-formatter-plugin:0.3:format (default) on project openmrs-api: Execution default of goal com.googlecode.maven-java-formatter-plugin:maven-java-formatter-plugin:0.3:format failed: Plugin com.googlecode.maven-java-formatter-plugin:maven-java-formatter-plugin:0.3 or one of its dependencies could not be resolved: Could not find artifact org.openmrs.tools:openmrs-tools:jar:2.7.0-SNAPSHOT -> [Help 1]
#59 7.724 [ERROR]
#59 7.725 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#59 7.725 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#59 7.725 [ERROR]
#59 7.725 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#59 7.725 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
------
Dockerfile:75
--------------------
  73 |     
  74 |     COPY api/ ./api/
  75 | >>> RUN --mount=type=cache,target=/root/.m2 mvn -pl api $MVN_ARGS
  76 |     
  77 |     COPY web/ ./web/
--------------------
error: failed to solve: process "/bin/sh -c mvn -pl api $MVN_ARGS" did not complete successfully: exit code: 1