Jenkins build log delete hook -
i using jenkins run builds end pushing large amounts of data database. make easier manage database run script on build log deletion delete associated tables in database.
my searching has uncovered lots of ways trigger build log deletion haven't found triggering on build log deletion.
i tried looking @ writing plugin browsing extension points didn't turn obvious way hook that.
in case turns out useful ubuntu 14.04 server , jenkins 1.631
you can find build log each build @
cat $jenkins_home/jobs/your_job_name/builds/build_no/log and can delete build jobs.
also can create cron job remove log files or can schedule job through jenkins that.
alternatively, deletelogplugin can used add "delete log" option on left hand side pane under console output.
let me know if helps.
Comments
Post a Comment