DI2E SysAdmin sorry for the radio silence. didn't register the email notification. Phew, this was a long time ago. If I remember correctly the directories were named by date (YYYY-MM-DD..., so "2013-10-22...") with a symlink linking the build number to the directory. Since there were other directories in there (such as build number) I needed to narrow it down before deleting.

I've checked (curiosity and all that). Here's an example of what I mean.

[user@server ~]$ ll /jenkins/jobs/myJob/builds/ | grep 2015-03
lrwxrwxrwx. 1 jenkins jenkins   19 Mar  2 11:23 1212 -> 2015-03-02_11-23-06
lrwxrwxrwx. 1 jenkins jenkins   19 Mar  2 14:03 1213 -> 2015-03-02_14-03-08
lrwxrwxrwx. 1 jenkins jenkins   19 Mar 12 11:58 1214 -> 2015-03-12_11-58-12
drwxr-xr-x. 2 jenkins jenkins 4096 Mar  2 11:40 2015-03-02_11-23-06
drwxr-xr-x. 2 jenkins jenkins 4096 Mar  2 14:18 2015-03-02_14-03-08
drwxr-xr-x. 2 jenkins jenkins 4096 Mar 12 12:11 2015-03-12_11-58-12

In hindsight, the script should also have checked for the existence of the symbolic link and deleted that as well.

Hope it helps.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to