I have Jenkins slave nodes configured on Windows Server 2012 with a very simple pipeline script:

      node('js-win') {
      	stage 'Checkout'
      	checkout scm
      	stage 'Build'
      	bat 'dir'
      }
      

      At the end of the script, from the Console output, it would just spin and hang after listing all the files.

          [JENKINS-33164] Pipeline bat stuck on Windows Server 2012

          mocsharp created issue -
          mocsharp made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          mocsharp made changes -
          Component/s New: ec2-plugin [ 15625 ]
          Carlos Lucas made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Carlos Lucas made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Jesse Glick made changes -
          Component/s New: durable-task-plugin [ 18622 ]
          Component/s Original: ec2-plugin [ 15625 ]
          Component/s Original: workflow-plugin [ 18820 ]
          Geoff Rowell made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Martin S. made changes -
          Link New: This issue duplicates JENKINS-28759 [ JENKINS-28759 ]
          Antonio Muñiz made changes -
          Link New: This issue is related to JENKINS-34150 [ JENKINS-34150 ]
          Jesse Glick made changes -
          Labels New: windows
          Jesse Glick made changes -
          Epic Link New: JENKINS-35399 [ 171192 ]

            jglick Jesse Glick
            mocsharp mocsharp
            Votes:
            24 Vote for this issue
            Watchers:
            35 Start watching this issue

              Created:
              Updated: