I currently have a master-slave configuration on Jenkins 1.442 running on a Linux box. Lately I started using file parameter for one of my jobs, and noticed that disk space was decreasing rather quickly on the master system. Upon examination it turns out that file parameter is creating files under /tmp, with a naming convention upload_*.tmp, when the file parameters are uploaded. I've done some experiment and noticed that:
- If the job is running on master, the tmp file is moved into the workspace correctly.
- If the job is running on slave, the tmp file is uploaded to the slave workspace correctly, but the upload_*.tmp file remains in /tmp.
I am using a file parameter for a 100 MB file, so it is very easy to collect GBs worth of temporary files, until my master runs out of disk space. For now I have added a cron job to delete these upload_*.tmp files, but it's not safe if the script runs at the same time as a user uploading a file param for a job.
Let me know what other debugging information I need to provide, if any. Please investigate, thanks.