jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-18507] some command can't exit in the execute windows batch command (praqma case 9630)

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

Description

My jenkins version is ver. 1.493 .

the command can run in cmd model and can normally end. you can see the log1 below.

But I put the command into the execute windows batch command, and then I run the job,the job hold on and can't end wait for long times. You can see the log2 below. I manually execute the bat file "C:\Users\Admin\AppData\Local\Temp\hudson9214056810875413252.bat" in cmd model . it can end.

– log1

C:\Users\Admin>PSEXEC -accepteula -s
GPS68 SCHTASKS /QUERY /TN "\GOPP\SDT" |findstr "Disabled"

PsExec v1.98 - Execute processes remotely

Copyright (C) 2001-2010 Mark Russinovich

Sysinternals - www.sysinternals.com

Starting SCHTASKS on GPS68 ...GPS68 ...

SCHTASKS exited on GPS68 with error code 0.

SDT Disabled

--log2

[workspace] $ cmd /c call C:\Users\Admin\AppData\Local\Temp\hudson9214056810875413252.bat

D:\Jenkins\jobs\tsd_test\workspace>PSEXEC -accepteula
GPS68 SCHTASKS /QUERY /TN "\GOPP\SDT" | findstr "Disabled"

PsExec v1.98 - Execute processes remotely

Copyright (C) 2001-2010 Mark Russinovich

Sysinternals - www.sysinternals.com

---
Originally reported by dzyjl, imported from: some command can't exit in the execute windows batch command (praqma case 9630)


  • status: Open
  • priority: Critical
  • component(s): durable-task-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-09

Raw content of original issue

My jenkins version is ver. 1.493 .
the command can run in cmd model and can normally end. you can see the log1 below.
But I put the command into the execute windows batch command, and then I run the job,the job hold on and can't end wait for long times. You can see the log2 below. I manually execute the bat file "C:\Users\Admin\AppData\Local\Temp\hudson9214056810875413252.bat" in cmd model . it can end.

– log1
C:\Users\Admin>PSEXEC -accepteula -s
GPS68 SCHTASKS /QUERY /TN "\GOPP\SDT" |findstr "Disabled"

PsExec v1.98 - Execute processes remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com

Starting SCHTASKS on GPS68 ...GPS68 ...
SCHTASKS exited on GPS68 with error code 0.
SDT Disabled

--log2
[workspace] $ cmd /c call C:\Users\Admin\AppData\Local\Temp\hudson9214056810875413252.bat

D:\Jenkins\jobs\tsd_test\workspace>PSEXEC -accepteula
GPS68 SCHTASKS /QUERY /TN "\GOPP\SDT" | findstr "Disabled"

PsExec v1.98 - Execute processes remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com


5 attachments

- [buildlog.jpg](https://issues.jenkins.io/secure/attachment/23830/buildlog.jpg)
> ![buildlog.jpg](https://issues.jenkins.io/secure/attachment/23830/buildlog.jpg)
- [buildred.jpg](https://issues.jenkins.io/secure/attachment/23829/buildred.jpg)
> ![buildred.jpg](https://issues.jenkins.io/secure/attachment/23829/buildred.jpg)
- [hudson6148162320693807782.bat](https://issues.jenkins.io/secure/attachment/23831/hudson6148162320693807782.bat)
- [jenkinsbuildlog.txt](https://issues.jenkins.io/secure/attachment/23833/jenkinsbuildlog.txt)
- [log.txt](https://issues.jenkins.io/secure/attachment/23832/log.txt)

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.