jenkinsci / jenkinsci/durable-task-plugin

[JENKINS-1245] allow termination of subprocesses of cmd.exe

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

Description

Problem: from within a hudson "windows batch task", my bat file in turns

invokes. e.g. a java.exe. When I terminate this hudson task with [x], the

java.exe is NOT terminated, and must be manually killed.

Quite a nasty thing, as "normal" users of the web-interface don't understand,

and the next build perhaps then fails, as the old build process still has some

files open etc.

Pls note the thread and Kohsukes last reply in

https://hudson.dev.java.net/servlets/ReadMsg?listName=users&msgNo=967

I assume that approach would solve the problem by using the windows-tool "pskill -t"

Proposal: make the "kill" command configurable in hudson, and document, how to

solve the problem. The hudson server administrator shall then download pskill

himself and configure hudson.

This way, you dont have problems with licensing.

---
Originally reported by gerhard6, imported from: allow termination of subprocesses of cmd.exe


  • assignee: kohsuke
  • status: Reopened
  • priority: Critical
  • component(s): durable-task-plugin
  • resolution: Fixed
  • resolved: 2008-02-08T19:27:27+00:00
  • votes: 0
  • watchers: 6
  • imported: 2025-12-09

Raw content of original issue

Problem: from within a hudson "windows batch task", my bat file in turns
invokes. e.g. a java.exe. When I terminate this hudson task with [x], the
java.exe is NOT terminated, and must be manually killed.
Quite a nasty thing, as "normal" users of the web-interface don't understand,
and the next build perhaps then fails, as the old build process still has some
files open etc.

Pls note the thread and Kohsukes last reply in
https://hudson.dev.java.net/servlets/ReadMsg?listName=users&msgNo=967

I assume that approach would solve the problem by using the windows-tool "pskill -t"
Proposal: make the "kill" command configurable in hudson, and document, how to
solve the problem. The hudson server administrator shall then download pskill
himself and configure hudson.
This way, you dont have problems with licensing.

  • environment: Platform: PC, OS: Windows XP

1 attachment

- [killOnWin.patch](https://issues.jenkins.io/secure/attachment/18076/killOnWin.patch)

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.