Hi, Don't think such a plugin exists, but might be useful. Can't find something approaching in https://wiki.jenkins-ci.org/display/JENKINS/Plugins
Writing such a plugin should be very straightforward. Basically, with http://stackoverflow.com/a/12363390/345845 you have almost all the core feature you need to implement. Alternatively, BTW, it should be easy to run that or close in a job every minute (granted you make sure it DOES run, that's the issue) in a system groovy script. My 2 cents 2016-10-27 1:02 GMT+02:00 <[email protected]>: > Hi, > > We are using Jenkins with the GitHub Org Folder plugin to allow our users > to leverage Jenkinsfiles for job definition. > > One thing we have run into is when a user uses a label that does not exist > for their node block then the job ends up waiting in the Build Queue > forever. > > We would like to cancel any job that has been in the queue for longer than > X duration, but I can't find anything that seems to allow us to do this. > > Does anyone have any advice/input on how we might cancel these jobs after > a certain amount of time? > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" 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-users/85c84b3f-07e6-4351-b83b-80206b907eba%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/85c84b3f-07e6-4351-b83b-80206b907eba%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CANWgJS57C4%3D5vUBNAxW6wp9pb_S3vQB3zOqszoTY8BNk6G%2B_jQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
