jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-65749] Shell commands hang in docker agent

Open
#671 0 comments 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin component:pipeline imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

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.

---
Originally reported by marci, imported from: Shell commands hang in docker agent


  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin, pipeline
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue

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.


environment

```
Windows Server 2019 Version 1809 (OS Build 17763.1971), DockerMsftProvider

Jenkins 2.235.4
```

1 attachment

- [docker-issue.zip](https://issues.jenkins.io/secure/attachment/54897/docker-issue.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.