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

Pipeline bat stuck on Windows Server when mixed agents used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: durable-task-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.107.3
      Windows Server 2008 R2
      Linux/Kubernetes
    • Similar Issues:

      Description

      Hi,

      We have our Jenkins master in Kubernetes cluster on Linux.

      We created windows agent and connected it to master.

      Declarative pipeline is used and problems occurs with definition below:

       pipeline {
          agent {
              kubernetes {
                  label 'worker'
                  defaultContainer 'jnlp'
                  inheritFrom 'jnlp-custom'
              }
          }
          options { 
              timestamps()
              skipStagesAfterUnstable()
              }
          triggers {
              pollSCM('')
          }
          stages {
              stage("build windows"){
                  agent {
                      label "windows"
                  }
                  when {
                      branch 'windows'
                  }
                  steps{
                      bat "ping 127.0.0.1"
                  }
              }
          }
      
      } 
      

      Code is correctly checkout to workspace on windows agent, but then job hangs indefinitely on:

      Running batch script
      

      Problem does not occur when we change agent to none:

      pipeline {
          agent none
          options { 
              timestamps()
              skipStagesAfterUnstable()
              }
          triggers {
              pollSCM('')
          }
          stages {
              stage("build windows"){
                  agent {
                      label "windows"
                  }
                  when {
                      branch 'windows'
                  }
                  steps{
                      bat "ping 127.0.0.1"
                  }
              }
          }
      
      } 
      

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            adiq Adrian Wawrzak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: