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

JNLP container is launched with default arguments even with an explicit container definition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • Jenkins 2.107.2
      Kubernetes plugin 1.5.2

      Since Kubernetes plugin 1.5.2, this pipeline script:

       

      podTemplate (
          cloud: 'my-cloud',
          label: 'my-pod',
          containers: [
              containerTemplate(
                  name: 'jnlp',
                  image: 'my-image')]
      ) {
          // ...
      }
      

      will run my-image with the default command line arguments, namely the node secret and node name. Prior to this version, it would run the image with no arguments.

      This is a problem for me, because my image gets confused by the additional arguments. I think this should be considered a regression.

            csanchez Carlos Sanchez
            rdonchen_intel Roman Donchenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: