• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Windows Server 2019 Version 1809 (OS Build 17763.1971), DockerMsftProvider
      Jenkins 2.235.4

      Shell commands hangs in declarative pipeline agent run in Docker container:

      pipeline {
        agent {
          docker {
            label 'slave'
            image 'mcr.microsoft.com/windows/servercore:ltsc2019' 
          }
        }
        options { 
          skipDefaultCheckout true
        }
        stages {
          stage('deadlocked') {
            steps {
              bat 'dir'
            }
          }
        }
      }
      
      Actual Result:
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (deadlocked)
      [Pipeline] bat
      
      Never ends
      Steps to reproduce (files attached):
      1. run Make.ps1 to create test docker images (test/jenkins-master, test/jenkins-slave).
      2. run run.ps1 to launch test Jenkins environment
      3. Build deadlock-pipeline Jenkins job.

          [JENKINS-65749] Shell commands hang in docker agent

          Sebők Márton László created issue -
          Sebők Márton László made changes -
          Attachment New: docker-issue.zip [ 54897 ]
          Sebők Márton László made changes -
          Description Original: Shell commands hangs in declarative pipeline agent run in Docker container:
          {quote}{{ pipeline {}}
          {{  agent {}}
          {{    docker {}}
          {{      label 'slave'}}
          {{      image 'mcr.microsoft.com/windows/servercore:ltsc2019' }}
          {{    }}}
          {{  }}}
          {{  options { }}
          {{   skipDefaultCheckout true}}
          {{  }}}
          {{  stages {}}
          {{    stage('deadlocked') {}}
          {{      steps {}}
          {{        bat 'dir'}}
          {{      }}}
          {{    }}}
          {{  } }}
          }{quote}
          h6. {{Actual Result:}}
          {quote}[Pipeline] {[Pipeline] stage[Pipeline] { (deadlocked)[Pipeline] bat
          !http://bp-cis-dow.kofax.com:8080/static/816e3794/images/spinner.gif! Never ends{quote}
          h6. Steps to reproduce (files attached):
           # run Make.ps1 to create test docker images (test/jenkins-master, test/jenkins-slave).
           # run run.ps1 to launch test Jenkins environment
           # Build deadlock-pipeline Jenkins job.
          New: Shell commands hangs in declarative pipeline agent run in Docker container:
          {quote}{{pipeline {}}
          {{  agent {}}
          {{    docker {}}
          {{      label 'slave'}}
          {{      image 'mcr.microsoft.com/windows/servercore:ltsc2019' }}
          {{    }}}
          {{  }}}
          {{  options { }}
          {{    skipDefaultCheckout true}}
          {{  }}}
          {{  stages {}}
          {{    stage('deadlocked') {}}
          {{      steps {}}
          {{        bat 'dir'}}
          {{      }}}
          {{    }}}
          {{  }}}
          {{}}}

           
          {quote}
          h6. {{{{Actual Result}}:}}
          {quote}[Pipeline] {[Pipeline] stage[Pipeline] { (deadlocked)[Pipeline] bat
           !http://bp-cis-dow.kofax.com:8080/static/816e3794/images/spinner.gif! Never ends
          {quote}
          h6. Steps to reproduce (files attached):
           # run Make.ps1 to create test docker images (test/jenkins-master, test/jenkins-slave).
           # run run.ps1 to launch test Jenkins environment
           # Build deadlock-pipeline Jenkins job.
          Sebők Márton László made changes -
          Description Original: Shell commands hangs in declarative pipeline agent run in Docker container:
          {quote}{{pipeline {}}
          {{  agent {}}
          {{    docker {}}
          {{      label 'slave'}}
          {{      image 'mcr.microsoft.com/windows/servercore:ltsc2019' }}
          {{    }}}
          {{  }}}
          {{  options { }}
          {{    skipDefaultCheckout true}}
          {{  }}}
          {{  stages {}}
          {{    stage('deadlocked') {}}
          {{      steps {}}
          {{        bat 'dir'}}
          {{      }}}
          {{    }}}
          {{  }}}
          {{}}}

           
          {quote}
          h6. {{{{Actual Result}}:}}
          {quote}[Pipeline] {[Pipeline] stage[Pipeline] { (deadlocked)[Pipeline] bat
           !http://bp-cis-dow.kofax.com:8080/static/816e3794/images/spinner.gif! Never ends
          {quote}
          h6. Steps to reproduce (files attached):
           # run Make.ps1 to create test docker images (test/jenkins-master, test/jenkins-slave).
           # run run.ps1 to launch test Jenkins environment
           # Build deadlock-pipeline Jenkins job.
          New: Shell commands hangs in declarative pipeline agent run in Docker container:

          {{pipeline {}}
           {{  agent {}}
           {{    docker {}}
           {{      label 'slave'}}
           \{{      image 'mcr.microsoft.com/windows/servercore:ltsc2019' }}
           \{{    }}}
           \{{  }}}
           \{{  options { }}
           {{    skipDefaultCheckout true}}
           \{{  }}}
           {{  stages {}}
           {{    stage('deadlocked') {}}
           {{      steps {}}
           {{        bat 'dir'}}
           \{{      }}}
           \{{    }}}
           \{{  }}}
           {{}}}
          h6. {{{{Actual Result}}:}}
          {quote}[Pipeline] {[Pipeline] stage[Pipeline] { (deadlocked)[Pipeline] bat
           !http://bp-cis-dow.kofax.com:8080/static/816e3794/images/spinner.gif! Never ends
          {quote}
          h6. Steps to reproduce (files attached):
           # run Make.ps1 to create test docker images (test/jenkins-master, test/jenkins-slave).
           # run run.ps1 to launch test Jenkins environment
           # Build deadlock-pipeline Jenkins job.
          Sebők Márton László made changes -
          Description Original: Shell commands hangs in declarative pipeline agent run in Docker container:

          {{pipeline {}}
           {{  agent {}}
           {{    docker {}}
           {{      label 'slave'}}
           \{{      image 'mcr.microsoft.com/windows/servercore:ltsc2019' }}
           \{{    }}}
           \{{  }}}
           \{{  options { }}
           {{    skipDefaultCheckout true}}
           \{{  }}}
           {{  stages {}}
           {{    stage('deadlocked') {}}
           {{      steps {}}
           {{        bat 'dir'}}
           \{{      }}}
           \{{    }}}
           \{{  }}}
           {{}}}
          h6. {{{{Actual Result}}:}}
          {quote}[Pipeline] {[Pipeline] stage[Pipeline] { (deadlocked)[Pipeline] bat
           !http://bp-cis-dow.kofax.com:8080/static/816e3794/images/spinner.gif! Never ends
          {quote}
          h6. Steps to reproduce (files attached):
           # run Make.ps1 to create test docker images (test/jenkins-master, test/jenkins-slave).
           # run run.ps1 to launch test Jenkins environment
           # Build deadlock-pipeline Jenkins job.
          New: Shell commands hangs in declarative pipeline agent run in Docker container:
          {code:java}
          pipeline {
            agent {
              docker {
                label 'slave'
                image 'mcr.microsoft.com/windows/servercore:ltsc2019'
              }
            }
            options {
              skipDefaultCheckout true
            }
            stages {
              stage('deadlocked') {
                steps {
                  bat 'dir'
                }
              }
            }
          }
          {code}
          h6. {{Actual Result}}:
          {noformat}
          [Pipeline] {
          [Pipeline] stage
          [Pipeline] { (deadlocked)
          [Pipeline] bat

          Never ends{noformat}
          h6. Steps to reproduce (files attached):
           # run Make.ps1 to create test docker images (test/jenkins-master, test/jenkins-slave).
           # run run.ps1 to launch test Jenkins environment
           # Build deadlock-pipeline Jenkins job.

            Unassigned Unassigned
            marci Sebők Márton László
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: