I am running make script(Execute Shell command option) inside a jenkins job.
The make script has rm -rf <directory name>
shell command.
This command fails with error saying the Directory is not empty. Since script uses rm -rf
it should work even if directory is not empty.
Not sure what is wrong here.
Any help around this will be much appreciated.
Delete the job provisioner from Jenkins. Navigate to Admin Console->Jenkins->jobs->job-provisions folder, select the necessary provisioner and click the drop-down right to the provisioner name. Select Delete project.
To delete any job from Gui,Go to your job and on left side,click on delete project. Save this answer.
The Jenkins home directory contains all the details of your Jenkins server configuration, details that you configure in the Manage Jenkins screen. These configuration details are stored in the form of a set of XML files. Much of the core configuration, for example, is stored in the config. xml file.
If your Jenkins job is executed on a Linux machine, this could b:
rm -Rf
will delete all the empty folders)On Windows, check the full error message: there could be a resource preempted by the OS (used by another process).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With