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

Issue a warning when default jdk is used - advise to use jdk(...)

    Details

    • Similar Issues:

      Description

      Recently my builds broke without modifying the job-dsl because I added a second JDK and therefore no "default JDK" was available. I was not aware of the issue.

      It would be nice if the job-dsl-plugin creates a warning if there is only one JDK defined and there is no jdk(...) definition in the job dsl. It could advise to use jdk('defaultName') in the job-dsl to not change the behavior of the jobs if another jdk is defined in the jenkins tool installation.

        Attachments

          Activity

          Hide
          daspilker Daniel Spilker added a comment -

          I don't think that this is feasible. It would generate a lot of bogus warnings for all Python, Ruby, NodeJs, etc jobs that do not care about the JDK.

          Show
          daspilker Daniel Spilker added a comment - I don't think that this is feasible. It would generate a lot of bogus warnings for all Python, Ruby, NodeJs, etc jobs that do not care about the JDK.
          Hide
          bherb Benjamin Herbert added a comment -

          I was too narrow-minded. 

          Show
          bherb Benjamin Herbert added a comment - I was too narrow-minded. 
          Hide
          bherb Benjamin Herbert added a comment -

          Daniel Spilker I am not sure what to chose when I close the issue, can you close it?

          Show
          bherb Benjamin Herbert added a comment - Daniel Spilker  I am not sure what to chose when I close the issue, can you close it?

            People

            • Assignee:
              daspilker Daniel Spilker
              Reporter:
              bherb Benjamin Herbert
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: