title: How to disable a job if it failed three or more times?
body: <p>I want to disable a job if it fails three or more times. I found <a href="https://stackoverflow.com/a/6270048/1184842">this solution</a> to disable it immediately. But I want to wait three times.</p>