Performing an action when something is found in a build log has been on my
todo list for the Build Failure Analyzer Plugin [1] for a long time.
Given my current priorities I'll probably not get around to it in the
foreseeable future, but as usual I'm open to pull requests ;)

[1] https://wiki.jenkins-ci.org/display/JENKINS/Build+Failure+Analyzer

Finding unused jobs is, in my experience, somewhat of a black art, since
there are so many variables to take into consideration, at least in the
environment that I used to work. A job could for example still be running
once a day even though nobody is using the results due to a scheduled
trigger, one folder might need special tweaking because it contains
reference jobs etc.
So it lends itself better to scripting than a static plugin that is more
bulky to update when you need more fine grained rules etc.

/B


On Sat, Dec 19, 2015 at 8:32 AM, Victor Martinez <
[email protected]> wrote:

> Hi,
>
>  You can easily automate your validations via groovy Jenkins api and run a
> jenkins job every X time to either report/notify or disable any jobs.
>
>  That's how I automate any maintainace tasks.
>
>  My tips:
>
>   1) create your jobs via DSL.
>    a) and run a system groovy step
>   2) script your logic in groovy. Look at the scriptler and groovy post
> build plugins since there are a bunch of examples.
>
> Ideally you will query every build which run in the last X time, read the
> log file and look for any regex if so disable that job and notify with some
> email. The first case will be similar but querying every job which hasn't
> run any build in the last X time and disable it.
>
> Probably if it doesn't exist any plugin yet it would be a good idea to
> have a disable policy plugin in case any jobs haven't been triggered in the
> last X days and notify via email to the admin list. But I don't recall any
> plugin like that.
>
> I hope it helps.
>
> Cheers
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/e6ce499a-07b9-4a87-b8a5-08cdaca1d4dd%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS3_dSM4rx-DHBxEFtaxy-OK2J5Rgu%2BFCO%3DS%2BZtuUhfY1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to