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

Container selection should default to user container

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • 1.0

      It has happened multiple times in our company that people not familiar with this plugin will add a single container and then forget to define a container step.

      I believe it would be sensible to default to the users container instead of the jnlp container if there is no container step specified, especially when there is only one user container specified.
      This will allow them to not have to worry about the internals of how the plugin works, specifically that a jnlp container is added.

      It is especially confusing when the first example does not mention the container step

      podTemplate(label: 'mypod') {
          node('mypod') {
              stage('Run shell') {
                  sh 'echo hello world'
              }
          }
      }
      

      P.S This seems to be a duplicate of JENKINS-41109 but that was closed without a fix 8 months ago?

            csanchez Carlos Sanchez
            larslawoko Lars Lawoko
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: