Created
May 10, 2018 01:58
-
-
Save whtsky/1fa62fd7e59bab356ea271e05dd1534c to your computer and use it in GitHub Desktop.
gitlab auto retry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function xxxci() { | |
$('.commit').map(function () { | |
if ($(this).find('.ci-failed')) { | |
try { | |
$(this).find('.js-pipelines-retry-button')[0].click() | |
$('.js-primary-button.btn-danger')[0].click() | |
} catch (e) { | |
} | |
} | |
}) | |
} | |
setInterval(xxxci, 2000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment