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

            jameshowe James Howe created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Labels pipeline-improvement newbie-friendly pipeline-improvement
            jameshowe James Howe made changes -
            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. 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.

            {code:groovy}
            tools {
                docker: 'latest'
            }
            {code}
            jameshowe James Howe made changes -
            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.

            {code:groovy}
            tools {
                docker: 'latest'
            }
            {code}
            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.
            {code:groovy|title=Current}
            tools {
                'org.jenkinsci.plugins.docker.commons.tools.DockerTool': 'latest'
            }
            {code}
            {code:groovy|title=Proposed}
            tools {
                docker: 'latest'
            }
            {code}
            jameshowe James Howe made changes -
            Link This issue duplicates JENKINS-37390 [ JENKINS-37390 ]
            jameshowe James Howe made changes -
            Status Open [ 1 ] Closed [ 6 ]
            Resolution Duplicate [ 3 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: