Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68069

Dashboard View tests fail on Java 17

XMLWordPrintable

    • 2.432.va_712ce35862d

      Steps to reproduce

      With Java 17, run:

      mvn clean verify -Dtest=hudson.plugins.view.dashboard.test.TestSummaryForMavenJobs#summaryIncludesMavenJob,hudson.plugins.view.dashboard.test.TestTrendChartTest#summaryIncludesMavenJob -Djenkins.version=2.339 -Denforcer.skip -Djenkins-test-harness.version=1721.v385389722736 '-DargLine=--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED'
      

      Expected results

      The tests pass.

      Actual results

      The tests fail with:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile (default-testCompile) on project testfail: Compilation failure: Compilation failure:
      [ERROR] Source option 6 is no longer supported. Use 7 or later.
      [ERROR] Target option 6 is no longer supported. Use 7 or later.
      

            basil Basil Crow
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: