Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-14859

Jenkins is incorrectly activating Java 8 Profile for Java 7 builds

    Details

    • Type: Bug
    • Status: Waiting for user
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Jenkins
    • Labels:
      None
    • Project:
      DeltaSpike

      Description

      Example Build: https://builds.apache.org/view/A-D/view/DeltaSpike/job/DeltaSpike%20for%20CDI%201.1%20and%201.2/108/org.apache.deltaspike.modules$deltaspike-data-module-test-java8/
      Profile definition: https://github.com/apache/deltaspike/blob/master/deltaspike/modules/data/pom.xml#L75

      Jenkins is incorrectly activating this profile to run tests. I've tested it locally and when using Java 7 this profile does not get activated, yet on ASF jenkins it is getting activated. You can also see in the job config we are pointing to Java 7

        Activity

        Hide
        gmcdonald Gavin added a comment -
        What version of Maven do you use locally?
        Show
        gmcdonald Gavin added a comment - What version of Maven do you use locally?
        Hide
        johndament John D. Ament added a comment - Reporter
        I switched locally and on jenkins to 3.5, issue remains. Jenkins was on 3.0.4 previously. This was working fine previously on 3.0.4 as well.
        Show
        johndament John D. Ament added a comment - Reporter I switched locally and on jenkins to 3.5, issue remains. Jenkins was on 3.0.4 previously. This was working fine previously on 3.0.4 as well.
        Hide
        gmcdonald Gavin added a comment -
        revisiting this I think it is due to it being a Maven Type Job, which uses JDK 1.8 as a minimum now. Can you try this as a freestyle job?
        Show
        gmcdonald Gavin added a comment - revisiting this I think it is due to it being a Maven Type Job, which uses JDK 1.8 as a minimum now. Can you try this as a freestyle job?
        Hide
        gmcdonald Gavin added a comment -
        [~johndament] - do you want to revisit this?
        Show
        gmcdonald Gavin added a comment - [~johndament] - do you want to revisit this?

          People

          • Assignee:
            gmcdonald Gavin
            Reporter:
            johndament John D. Ament
            Request participants:
            None
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: