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

can not override jnlp container

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • kubernetes-plugin
    • None

      When I try to override the jnlp container image I still always get the alpine image and do not get the specified image. It seems that event hough i specify a container with the name jnlp it just ignores it and uses the default alpine image.

       

      agent {
        kubernetes {
          label "human-review-ui-pipeline-${env.BUILD_ID}"
          defaultContainer 'jnlp'
          yaml """
      apiVersion: v1
      kind: Pod
      metadata:
      {{ labels:}}
      {{ pod-template: jenkins-slave-npm}}
      spec:
      {{ containers:}}
      {{ - name: jnlp}}
        image: "redhat-cop/jenkins-slave-image-mgmt"

      """

            csanchez Carlos Sanchez
            itewk Ian Tewksbury
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: