question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Want failed on Jenkins when score is below 90%

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
soulgalorecommented, May 5, 2017

Hi again @sakonachhoeurng

ok, let see if I can explain it better:

and use that in Jenkins to pass/fail or just use sitespeed.io exit status

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

0reactions
beenannercommented, May 12, 2017

Let us know if you need anything else @sakonachhoeurng. Going ahead and closing this ticket out.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found