-
Bug
-
Resolution: Fixed
-
Major
-
None
-
any
-
-
2.141
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
- 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
[JENKINS-17116] graceful job termination
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Link |
New:
This issue is related to |
I created this freestyle job, but the traps are never invoked when hitting [x] to "stop" the job.
It looks like Jenkins is using kill -9, but it is not since the rest of the script is executed:
Is it possible that Jenkins disables the traps?