OpenMRS Core Master

Build: #3139 failed

Job: Build failed

Stages & jobs

  1. Build

  2. Test

  3. Deploy

  4. Release

    Requires a user to start manually

Job result summary

Completed
Duration
32 seconds
Revision
2231773105f51d5808062afdcee71f0a376b6467 2231773105f51d5808062afdcee71f0a376b6467
Fixed in
#3140 (Rebuilt by Daniel Kayiwa)
No failed test found. A possible compilation error occurred.

Configuration changes

Job Build with key TRUNK-MASTER-JOB1 no longer exists.

Error summary

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

#65 4.635 [INFO] --- buildnumber-maven-plugin:3.0.0:create (default) @ openmrs-web ---
#65 5.586 [INFO] ShortRevision tag detected. The value is '6'.
#65 5.609 [INFO] Executing: /bin/sh -c cd '/openmrs_core/web' && 'git' 'rev-parse' '--verify' '--short=6' 'HEAD'
#65 5.609 [INFO] Working directory: /openmrs_core/web
#65 5.741 [WARNING] Cannot get the revision information from the scm repository, proceeding with revision of 0 :
#65 5.741 Exception while executing SCM command.
#65 5.742 [INFO] Storing buildNumber: 0 at timestamp: 1670362507319
#65 5.745 [WARNING] Cannot get the branch information from the git repository:
#65 5.745 Error while executing command.
#65 5.745 [INFO] ShortRevision tag detected. The value is '6'.
#65 5.746 [INFO] Executing: /bin/sh -c cd '/openmrs_core/web' && 'git' 'rev-parse' '--verify' '--short=6' 'HEAD'
#65 5.747 [INFO] Working directory: /openmrs_core/web
#65 5.749 [WARNING] Cannot get the branch information from the scm repository, proceeding with UNKNOWN_BRANCH :
#65 5.749 Exception while executing SCM command.
#65 5.749 [INFO] Storing buildScmBranch: UNKNOWN_BRANCH
#65 5.750 [INFO]
#65 5.750 [INFO] --- build-helper-maven-plugin:3.3.0:parse-version (parse-version) @ openmrs-web ---
#65 5.997 [INFO]
#65 5.998 [INFO] --- jacoco-maven-plugin:0.8.8:prepare-agent (prepare-agent) @ openmrs-web ---
#65 6.259 [INFO] argLine set to -javaagent:/usr/share/maven/ref/repository/org/jacoco/org.jacoco.agent/0.8.8/org.jacoco.agent-0.8.8-runtime.jar=destfile=/openmrs_core/web/target/jacoco.exec,includes=org/openmrs/** -Duser.language=en -Duser.region=US -Xmx1g -Djava.locale.providers=COMPAT
#65 6.260 [INFO]
#65 6.261 [INFO] --- maven-java-formatter-plugin:0.3:format (default) @ openmrs-web ---
#65 6.673 [INFO] Using 'UTF-8' encoding to format source files.
#65 7.433 [INFO] Number of files to be formatted: 61
#65 9.003 [INFO] Successfully formatted: 0 file(s)
#65 9.005 [INFO] Fail to format        : 0 file(s)
#65 9.005 [INFO] Skipped               : 61 file(s)
#65 9.006 [INFO] Approximate time taken: 2s
#65 9.007 [INFO]
#65 9.007 [INFO] --- maven-resources-plugin:3.3.0:resources (default-resources) @ openmrs-web ---
#65 9.218 [INFO] Copying 22 resources
#65 9.265 [INFO]
#65 9.266 [INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ openmrs-web ---
#65 9.580 [INFO] Changes detected - recompiling the module!
#65 9.588 [INFO] Compiling 41 source files to /openmrs_core/web/target/classes
#65 15.91 [INFO] /openmrs_core/web/src/main/java/org/openmrs/web/controller/PseudoStaticContentController.java: Some input files use or override a deprecated API.
#65 15.92 [INFO] /openmrs_core/web/src/main/java/org/openmrs/web/controller/PseudoStaticContentController.java: Recompile with -Xlint:deprecation for details.
#65 15.92 [INFO] /openmrs_core/web/src/main/java/org/openmrs/module/web/ModuleServlet.java: /openmrs_core/web/src/main/java/org/openmrs/module/web/ModuleServlet.java uses unchecked or unsafe operations.
#65 15.92 [INFO] /openmrs_core/web/src/main/java/org/openmrs/module/web/ModuleServlet.java: Recompile with -Xlint:unchecked for details.
#65 15.92 [INFO]
#65 15.92 [INFO] --- maven-resources-plugin:3.3.0:testResources (default-testResources) @ openmrs-web ---
#65 15.92 [INFO] Copying 3 resources
#65 15.93 [INFO]
#65 15.93 [INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ openmrs-web ---
#65 15.95 [INFO] Changes detected - recompiling the module!
#65 15.95 [INFO] Compiling 20 source files to /openmrs_core/web/target/test-classes
#65 16.79 [INFO] /openmrs_core/web/src/test/java/org/openmrs/web/filter/update/UpdateFilterModelTest.java: Some input files use or override a deprecated API.
#65 16.80 [INFO] /openmrs_core/web/src/test/java/org/openmrs/web/filter/update/UpdateFilterModelTest.java: Recompile with -Xlint:deprecation for details.
#65 16.80 [INFO]
#65 16.80 [INFO] --- maven-surefire-plugin:3.0.0-M7:test (default-test) @ openmrs-web ---
#65 17.15 [INFO] Tests are skipped.
#65 17.15 [INFO]
#65 17.15 [INFO] --- maven-jar-plugin:3.3.0:jar (default-jar) @ openmrs-web ---
#65 17.50 [INFO] Building jar: /openmrs_core/web/target/openmrs-web-2.6.0-SNAPSHOT.jar
#65 17.63 [INFO]
#65 17.63 [INFO] --- maven-jar-plugin:3.3.0:test-jar (default) @ openmrs-web ---
#65 17.65 [INFO] Building jar: /openmrs_core/web/target/openmrs-web-2.6.0-SNAPSHOT-tests.jar
#65 17.68 [INFO]
#65 17.68 [INFO] --- license-maven-plugin:3.0:check (default) @ openmrs-web ---
#65 17.98 [INFO] Checking licenses...
#65 18.14 [WARNING] Missing header in: /openmrs_core/web/src/test/java/org/openmrs/web/filter/CookieClearingFilterTest.java
#65 18.15 [INFO] ------------------------------------------------------------------------
#65 18.15 [INFO] BUILD FAILURE
#65 18.15 [INFO] ------------------------------------------------------------------------
#65 18.15 [INFO] Total time:  16.229 s
#65 18.15 [INFO] Finished at: 2022-12-06T21:35:19Z
#65 18.15 [INFO] ------------------------------------------------------------------------
#65 18.16 [ERROR] Failed to execute goal com.mycila:license-maven-plugin:3.0:check (default) on project openmrs-web: Some files do not have the expected license header -> [Help 1]
#65 18.16 [ERROR]
#65 18.16 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#65 18.16 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#65 18.16 [ERROR]
#65 18.16 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#65 18.16 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
#65 ERROR: process "/bin/sh -c mvn -pl web $MVN_ARGS_SETTINGS $MVN_ARGS" did not complete successfully: exit code: 1

#63 [linux/arm64 dev 27/32] RUN mvn -pl web -s /usr/share/maven/ref/settings-docker.xml install -DskipTests
#63 CANCELED
------
> [linux/amd64 dev 27/32] RUN mvn -pl web -s /usr/share/maven/ref/settings-docker.xml install -DskipTests:
#65 18.15 [INFO] Total time:  16.229 s
#65 18.15 [INFO] Finished at: 2022-12-06T21:35:19Z
#65 18.15 [INFO] ------------------------------------------------------------------------
#65 18.16 [ERROR] Failed to execute goal com.mycila:license-maven-plugin:3.0:check (default) on project openmrs-web: Some files do not have the expected license header -> [Help 1]
#65 18.16 [ERROR]
#65 18.16 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#65 18.16 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#65 18.16 [ERROR]
#65 18.16 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#65 18.16 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
------
Dockerfile:86
--------------------
  84 |     
  85 |     COPY web/ ./web/
  86 | >>> RUN mvn -pl web $MVN_ARGS_SETTINGS $MVN_ARGS
  87 |     
  88 |     COPY webapp/ ./webapp/
--------------------
error: failed to solve: process "/bin/sh -c mvn -pl web $MVN_ARGS_SETTINGS $MVN_ARGS" did not complete successfully: exit code: 1