jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-48175] Powershell 'Hello World' Task Hangs

Open
#408 15 comments 0 reactions 0 assignees View on GitHub
component:durable-task-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
30
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Jenkinsfile:

pipeline {

agent any
options {
timeout(time: 1, unit: 'HOURS')
}
stages {
stage('Starting') {
steps {
echo "Running ${env.JOB_NAME} - ${env.BUILD_ID}"
}
}
stage('Checkout') {
steps {
echo 'Checkout..'
checkout scm
}
}
stage('Build') {
steps {
powershell 'Write-Output "Hello, World!"'
}
}
}
}

Here's the console output:

[Pipeline] // stage

[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] powershell
[devel] Running PowerShell script

And it just times out after an hour.

Powershell tasks were working last week. The change may have coincided with a Jenkins update from 2.73.2 to 2.73.3, but I reverting back to 2.73.2 has not resolved the issue.

---
Originally reported by hurricane766, imported from: Powershell 'Hello World' Task Hangs


  • status: Open
  • priority: Major
  • component(s): durable-task-plugin
  • resolution: Unresolved
  • votes: 8
  • watchers: 13
  • imported: 2025-12-09

Raw content of original issue

Jenkinsfile:



pipeline {

agent any
options {
timeout(time: 1, unit: 'HOURS')
}
stages {
stage('Starting') {
steps {
echo "Running ${env.JOB_NAME} - ${env.BUILD_ID}"
}
}
stage('Checkout') {
steps {
echo 'Checkout..'
checkout scm
}
}
stage('Build') {
steps {
powershell 'Write-Output "Hello, World!"'
}
}
}
}


Here's the console output:



[Pipeline] // stage

[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] powershell
[devel] Running PowerShell script


And it just times out after an hour.

Powershell tasks were working last week. The change may have coincided with a Jenkins update from 2.73.2 to 2.73.3, but I reverting back to 2.73.2 has not resolved the issue.

environment

```
Windows Server 2012 R2

Jenkins 2.73.3

Durable Task Plugin 1.17

Pipeline: Nodes and Processes 2.17

Powershell 4

java.specification.vendor Oracle Corporation

java.runtime.version 1.8.0_144-b01

Jenkins was installed using the windows installer, and is deploying to the same server (not remoting into other nodes).
```

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.