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

Unable to use kubernetes agent block in declarative pipeline

    Details

    • Similar Issues:

      Description

      When trying to use the kubernetes agent block i am presented with the error:

       
      WorkflowScript: 14: Invalid agent type "kubernetes" specified. Must be one of [any, docker, dockerfile, label, none] @ line 14, column 1.
      kubernetes {

       

      I am using Jenkins version: 2.107.3 and kubernetes-plugin version: 1.12.2

       

      I have searched but the only advice seems to be that the use of kubernetes in agent blocks requires Jenkins 2.66+

        Attachments

          Activity

          rhysmorgan1986 Rhys Morgan created issue -
          csanchez Carlos Sanchez made changes -
          Field Original Value New Value
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Not A Defect [ 7 ]
          jglick Jesse Glick made changes -
          Labels declarative kuberenetes-plugin plugin declarative plugin

            People

            • Assignee:
              csanchez Carlos Sanchez
              Reporter:
              rhysmorgan1986 Rhys Morgan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: