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

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

    XMLWordPrintable

Details

    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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: