remove-saucelabs-jobs-by-build
v1.0.20
Published
saucelabs jobs cleanup remove
Downloads
15
Readme
remove-saucelabs-jobs-by-build
remove-saucelabs-jobs-by-build
Comes in handy when needing to rerun a ci build for example in travis.
If the travis build fails and is rerun the saucelabs badge can generate the incorrect svg badge.
This utility removes the jobs for a given build.
Used best in combination with travis retries option
command usage
remove-saucelabs-jobs-by-build $SAUCE_USERNAME $SAUCE_ACCESS_KEY $TRAVIS_BUILD
with travis
package.json
Add remove-saucelabs-jobs-by-build to scripts for example
"scripts": {
"test-browsers": "remove-saucelabs-jobs-by-build && zuul test/*.js"
}
.travis.yml
Setup number of retries for example 4.
And run tests with retry
bundler_args: --retry 4
script:
travis_retry npm run test-browsers
If all the retries fail, then restarting the current build will still delete the saucelabs jobs for the build.
install
With npm do:
npm install remove-saucelabs-jobs-by-build
license
MIT