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

Unexpected behaviour when defining pod template in pipeline job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • Jenkins 2.60.3
      Kubernetes plugin 0.12
      Kubernetes 1.7.3

      My pipeline jobs look like this:

      podTemplate(
        label: 'default',
        namespace: 'default',
        containers: [
          containerTemplate(
            name: 'jnlp',
            image: 'eu.gcr.io/ft-main/jenkins-slave:jeroen-test',
            alwaysPull: 'true',
            command: '',
            args: ''
          )
        ],
        volumes: [
          hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock'),
          secretVolume(secretName: 'jenkins-slave-secrets', mountPath: '/mnt')
        ],
        envVars: [
          podEnvVar(key: "PROJECT_ID", value: "ft-control-test")
        ]
      ) {
        node('default') {
          // JOB
        }
      }

      I attached the plugin config I use as a screenshot.

      Every time one of these jobs runs, a pod template gets added to the plugin config (see attached screenshot) until the plugin is rendered unusable.

      Any idea what's going on here?

            csanchez Carlos Sanchez
            jeroen_s Jeroen Smolenaers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: