How do I allow Jenkins to create a temporary directory?

Is there a way / configuration to allow jenkins to create a temporary directory where to store the app generated files? At the end of this temporary directory should be removed.

+3


source to share


1 answer


You can do this with Add Build Step> Execute Shell. There you just create a folder and also delete it at the end.



If the folder can be located in the Jobs workspace, perhaps the workspace cleanup plugin can help, as it allows you to delete the workspace once the build is complete.

0


source







All Articles