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

Kubernetes plugin handling two JNLP agents

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • kubernetes-plugin
    • None
    • Jenkins 2.176.2, Kubernetes AKS 1.14 - preview, Jenkins installed from Helm, Kubernetes plugin 1.16.0

      Hello, I have tested windows agents using the AKS 1.14 preview. I have created Windows and Linux agents successfully in different pipelines using the plugin by configuring a separate pod template with a jnlp container (for Windows) in the UI. I am trying to have two different containers (one for windows and one for linux) using pod specs from Git. Is this possible? I have been able to run the Jenkinsfile from here: https://github.com/mluyo3414org/pod-templates where one pod (linux based) is obtained from Git and one pod (windows based ) is obtained from the UI.  The jenkinsfile currently works fine as the label 'windows-test' is configured in the UI but when trying to use https://github.com/mluyo3414org/pod-templates/blob/master/win/win-pod.yaml it fails with:

      25m Warning Failed pod/windows-q658k-sv952 Error: failed to start container "jnlp": Error response from daemon: container jnlp encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2) extra info: {"CommandLine":"cat","User":"jenkins","WorkingDirectory":"C:\\Users\\jenkins\\Jenkins","Environment":{"AGENT_WORKDIR":"C:/Users/jenkins/Jenkins/Agent","HOME":"/home/jenkins","JAVA_BASE_URL":"https://github.com/AdoptOpenJDK/openjdk8-upstream-binaries/releases/download/jdk8u212-b04/OpenJDK8U-","JAVA_HOME":"C:
      openjdk-8","JAVA_URL_VERSION":"8u212b04","JAVA_VERSION":"8u212-b04","JENKINS_AGENT_NAME":"windows-q658k-sv952","JENKINS_AGENT_PORT":"tcp://10.0.103.127:50000","JENKINS_AGENT_PORT_50000_TCP":"tcp://10.0.103.127:50000","JENKINS_AGENT_PORT_50000_TCP_ADDR":"10.0.103.127","JENKINS_AGENT_PORT

            csanchez Carlos Sanchez
            mluyo3414 Miguel Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: