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

Add "docker" alias for DockerTool

    Details

    • Similar Issues:

      Description

      Most other tool implementations provide a short name for use in pipelines (jdk, maven, etc.) but there's no docker. You have to use the full quoted class name instead.

      Current
      tools {
          'org.jenkinsci.plugins.docker.commons.tools.DockerTool': 'latest'
      }
      
      Proposed
      tools {
          docker: 'latest'
      }
      

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            relatively easy to do.

            The only problem might be with JCasC Plugin compatibility. AFAIK he does not filter by extension type when looking for aliases, so such change may cause regressions there. CC Nicolas De Loof Ewelina Wilkosz

            Show
            oleg_nenashev Oleg Nenashev added a comment - relatively easy to do. The only problem might be with JCasC Plugin compatibility. AFAIK he does not filter by extension type when looking for aliases, so such change may cause regressions there. CC Nicolas De Loof Ewelina Wilkosz
            Hide
            jameshowe James Howe added a comment -

            Hopefully it doesn't collide with pipeline.agent.docker or the global docker (which also provides docker.withTool()).

            Show
            jameshowe James Howe added a comment - Hopefully it doesn't collide with pipeline.agent.docker or the global docker (which also provides docker.withTool() ).
            Hide
            jameshowe James Howe added a comment - - edited

            Seems there's already a PR for this, but it was closed without further development.

            Show
            jameshowe James Howe added a comment - - edited Seems there's already a PR for this, but it was closed without further development.

              People

              • Assignee:
                Unassigned
                Reporter:
                jameshowe James Howe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: