Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I "map" certain return value of a script to "yellow" status in Jenkins?

In Jenkins there is a possibility to create free project which can contain a script execution. The build fails (becomes red) when the return level of the script is not 0.

Is there a possibility to make it "yellow"?
(Yellow usually indicates successful build with failed tests)

The system runs on Linux.

like image 774
Ivivi Vavava Avatar asked Nov 10 '11 14:11

Ivivi Vavava


People also ask

What does yellow mean in Jenkins?

Description. The xUnit plugin allows for a yellow "unstable" state, between red "FAIL" and blue "OK". This is useful for test-suite steps, to help developers immediately distinguish between "I broke one of 40,000 unit tests" and "I caused compilation to fail entirely".

Why is my Jenkins build yellow?

The default setting in Jenkins is to mark a job yellow, when a Maven build fails because of failing tests. If you don't want to have three status of your jobs, you can configure Jenkins so, that the jobs also mark red independent why a Maven build fails.

What symbol in weather condition in Jenkins represents most stable build?

The table in the middle shows for each job the build status (green balls for successful and stable builds, yellow for unstable builds, red for failed builds [not shown], and gray for disabled jobs), a weather report that includes several indicators, such as stability, test results, code coverage, and static analysis ( ...


1 Answers

Give the Log Parser Plugin a try. That should do the trick for you.

like image 142
pushy Avatar answered Oct 05 '22 19:10

pushy