Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Refactored Jenkins stop script to kill multiple processes
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcc1212 committed Apr 4, 2024
1 parent ec1031e commit 2faf502
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkins/stop.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
if [ -f .pidfile ]; then
kill $(cat .pidfile)
for pid in $(cat .pidfile); do
kill $pid
echo "Killed $pid"
done

0 comments on commit 2faf502

Please sign in to comment.