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

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

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • job-dsl-plugin

      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.

          [JENKINS-42211] Issue a warning when default jdk is used - advise to use jdk(...)

          Benjamin Herbert created issue -
          Benjamin Herbert made changes -
          Description New: 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.
          Benjamin Herbert made changes -
          Labels New: jdk
          Daniel Spilker made changes -
          Resolution New: Won't Do [ 10001 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: