Created
August 9, 2018 16:12
-
-
Save allangrds/7495b525b1c2771db40efa6f1d93b900 to your computer and use it in GitHub Desktop.
This file contains 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
setInterval(() => { | |
let buildStatus = document.getElementsByClassName('badge-label')[0]; | |
let rebuildButton = document.getElementsByClassName('rebuild')[0]; | |
if(buildStatus.innerText.toUpperCase() === 'FAILED') { | |
rebuildButton.click(); | |
} | |
}, 5000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment