Idan Adar (2017-04-03 15:11):
Hello,
I received a request, which sounds kinda far-fetched to me, but maybe
I wrong.
Lets assume there is a job that is scheduled to run 3 times ago. End
to end sort of tests. And at some point one of the job runs fails.
The request here is to block all future PRs for any repository in
GitHub from triggering their respective jobs (each repo has a
Jenkinsfile, a PR triggers it).
Is this at all possible? Blocking all jobs until an error is fixed?
I think you would have to manually enable builds after the error is
fixed, but you can disable builds with Groovy:
def job = Jenkins.instance.getItem("your-job-name");
job.disable()
//job.enable()
Regards,
Nux.
--
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/f5fecaad-dbc3-d665-c35f-15e97345d2fa%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.