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

PCT: CLI -testJDKHome parameters is not being picked up correctly

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • plugin-compat-tester
    • None
    • Mac macOS Mojava (10.14.1)

      While trying to run the PCT using java11 I followed the instructions in the README and did:

       

      make demo-jdk11 -e TEST_JDK_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/

       

      Note, prior to doing so I added I added

      ‘cmd.add(“--show-version”)’

      after https://github.com/jenkinsci/plugin-compat-tester/blob/master/plugins-compat-tester/src/main/java/org/jenkins/tools/test/maven/ExternalMavenRunner.java#L29

      in order to show which JDK I was actually building with.  As a result I got multiple instances of

      running [/Users/kevinearls/tools/maven/bin/mvn, --batch-mode, --show-version, --define=argLine=-p /Users/kevinearls/sources/jenkinsci/forks/plugin-compat-tester/tmp/jaxb-api-2.3.0.jar:/Users/kevinearls/sources/jenkinsci/forks/plugin-compat-tester/tmp/javax.activation-1.2.0.jar --add-modules java.xml.bind,java.activation -cp /Users/kevinearls/sources/jenkinsci/forks/plugin-compat-tester/tmp/jaxb-impl-2.3.0.1.jar:/Users/kevinearls/sources/jenkinsci/forks/plugin-compat-tester/tmp/jaxb-core-2.3.0.1.jar, --define=failIfNoTests=false, --define=jvm=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/java, clean, process-test-classes, -Dmaven.javadoc.skip] in /Users/kevinearls/sources/jenkinsci/forks/plugin-compat-tester/work/mailer >> /Users/kevinearls/sources/jenkinsci/forks/plugin-compat-tester/out/logs/mailer/v1.22_against_org.jenkins-ci.plugins_plugin_2.150.log
      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
      Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
      Maven home: /Users/kevinearls/tools/maven
      Java version: 1.8.0_171, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre
      Default locale: en_FR, platform encoding: UTF-8
      OS name: "mac os x", version: "10.14.1", arch: "x86_64", family: "mac"

      I think the root of the problem may be here: https://github.com/jenkinsci/plugin-compat-tester/blob/master/plugins-compat-tester-model/src/main/java/org/jenkins/tools/test/model/PluginCompatTesterConfig.java#L292

      If I try "mvn --define=jvm=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/java --version" when I have JAVA_HOME set to JDK8 I get

      mvn --define=jvm=/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/java --version
      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
      Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
      Maven home: /Users/kevinearls/tools/maven
      Java version: 1.8.0_171, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre
      Default locale: en_FR, platform encoding: UTF-8
      OS name: "mac os x", version: "10.14.1", arch: "x86_64", family: "mac"

       

       

            Unassigned Unassigned
            kearls Kevin EARLS
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: