Want failed on Jenkins when score is below 90%
See original GitHub issueI do not have any issues. I would ask question because I try to research, but seem not found.
Currently when sitespeed.io
run on Jenkins
there is not way to know the build failed when it is low score.
Any solution for this. Please advice and share.
Thanks, Sakona
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Can a Jenkins build be failed for coverage going down?
I'm wondering if there is a way to configure Jenkins to fail a build if the coverage is lower than the last build...
Read more >JUnit Plugin - Jenkins
A factor of 0.1 means that 10% of tests failing will score 99% health ... If this operation slows down your build, or...
Read more >Create a Pipeline in Blue Ocean - Jenkins
In this tutorial, you'll be running Jenkins as a Docker container from the jenkins/jenkins Docker image. To run Jenkins in Docker, follow the...
Read more >NUnit plugin - Jenkins
A factor of 0.1 means that 10% of tests failing will score 99% health; A factor of 0.5 means that 10% of tests...
Read more >How to retrigger a Jenkins build after failure using declarative ...
I want to re trigger my build for 3 times if it fails. I want to add this step in my pipeline may...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi again @sakonachhoeurng
ok, let see if I can explain it better:
When you run sitespeed.io and everything and all budgets are passed (=are ok), sitespeed.io will exit with a 0 exit code (you can read this for more info about exit codes). If a budget fails, it will exit with an error code. Jenkins will automatically pickup the error and fail the build if I remember correctly. If you output the result as JUnitXML or TAP, you need to activate a plugin for Jenkins that reads the JUnitXML or TAP file and if fails the build if you have budget that fails (checkout https://wiki.jenkins-ci.org/display/JENKINS/JUnit+Plugin).
A budget is when you setup a goal for the page. It could be a maximum size of page or a time metric that you want to be under. Failing budget is when the metrics for that test doesn’t pass. Working (maybe we should rename that) is when the numbers are within the budget.
Best Peter
Let us know if you need anything else @sakonachhoeurng. Going ahead and closing this ticket out.