can not override jnlp container

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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"

      """

            Assignee:
            Carlos Sanchez
            Reporter:
            Ian Tewksbury
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: