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

Unknown client name for JNLP4-connect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • kubernetes-plugin
    • None
    • Weekly build of Jenkins on Azure

      I'm experiencing "local headers refused by remote: Unknown client name: mypod-2fm2d-h2rt0"

      It happens for following Jenkinsfile:

       

      pipeline {
        agent {
          kubernetes {
            label 'mypod'
            containerTemplate {
              name 'maven'
              image 'maven:3.3.9-jdk-8-alpine'
              ttyEnabled true
              command 'cat'
            }
          }
        }
        environment {
          CONTAINER_ENV_VAR = 'container-env-var-value'
        }
        stages {
          stage('Run maven') {
            steps {
              container('maven') {
                sh 'echo INSIDE_CONTAINER_ENV_VAR = ${CONTAINER_ENV_VAR}'
                sh 'mvn -version'
              }
            }
          }
        }
      }
      

       

            csanchez Carlos Sanchez
            sheerun Adam Stankiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: