Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
any
-
-
2.141
Description
Using the freestyle projects to execute bash shell scripts work fine. But cancelling a jenkins job seems to use SIGKILL. In this way the script cannot perform cleanup operations and free resources.
SIGKILL cannot be handled by shell
SIGINT/SIGTERM are not used by jenkins
Preferred: SIGINT -> wait 5 seconds -> SIGKILL
Attachments
Issue Links
- is related to
-
JENKINS-3105 Configuration UI to disable process tree killer selectively
-
- Resolved
-
-
JENKINS-55106 Build stuck on final "exit 0"
-
- Open
-
- relates to
-
JENKINS-59152 Jenkins fails to properly abort "bat" step
-
- Resolved
-
- links to
At work we use Jenkins 2.138.1. The problem can be reproduced for both freestyle jobs and pipelines. The testcase is performed between two different servers using SLES 12.4, OpenJDP 1.8.0_191-b12.