Jose Sa edited a comment on Bug JENKINS-17265

After some analysis of my previous script I realized it contained a lot of false positives possibly due to years of accumulated history of broken builds, java crashes, wrong rsync of jobs between servers, etc, that lead to the following most common problems:

  • numbered links pointing to removed build directories (solution: remove links)
  • build directories without build.xml file (solution: remove directories)
  • build directories without numbered links (solution: create links)
  • build directories not in date format (solution: delete directories)

Since these happen often I created some scripts to:

  • Detect those common problems with optional cleanup (passing argument '-c') - check_invalid_builds.sh
  • Checking the missing builds as given as excerpt above - check_missing_builds.sh

NOTE: to effectively apply the cleanups first run the script without '-c' to run in preview mode and review the suggestions, when ready to apply them shutdown Jenkins first so that there are no files pending in memory to be written to file system.

Tested in RHEL6 and Solaris 10 (with gnu utils)

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/groups/opt_out.
 
 

Reply via email to