jenkinsci / mac-plugin

Plugin to configure Macs as Jenkins agents
https://plugins.jenkins.io/mac/
MIT License
12 stars 12 forks source link

[JENKINS-66374] Stop user process before the delete #19

Closed mat1e closed 2 years ago

mat1e commented 3 years ago

This pull request respond to the issue JENKINS-66374.

The mac user is not deleted when something went wrong in the build. The home folder of the user cannot be deleted because somes process still using it.

This PR add pkill command to stop all process of an user before delete it.

mat1e commented 2 years ago

This step is already performed by sysadminctl command.