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

Shell commands hang in docker agent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Windows Server 2019 Version 1809 (OS Build 17763.1971), DockerMsftProvider
      Jenkins 2.235.4
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              Created:
              Updated: