Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dislable the unstable status #278

Closed
nroose opened this issue Jun 10, 2021 · 2 comments · Fixed by #282
Closed

Dislable the unstable status #278

nroose opened this issue Jun 10, 2021 · 2 comments · Fixed by #282

Comments

@nroose
Copy link

nroose commented Jun 10, 2021

Dependencies

Feature Request

We are using this with rspec in jenkins jobs and we want to prevent the result from being changed from success to unstable based on retries - we run rspec with --only-failures if the rspec run fails the first time. We have an old, large rails project with 10,000 specs and there are often some tests that fail. We have other ways to track, prioritize, and manage those. I tried setting the amplification to 0, but that does not seem to do it. Is there some other way to prevent this already?

@haydarAlaeddin
Copy link

you could manipulate the job result from your pipeline script, doing something like:

      if (currentBuild.result == 'UNSTABLE') {
        currentBuild.rawBuild.@result = hudson.model.Result.SUCCESS
      }

Check https://stackoverflow.com/questions/38221836/how-to-manipulate-the-build-result-of-a-jenkins-pipeline-job-back-to-success

@nroose
Copy link
Author

nroose commented Jun 24, 2021

Can't seem to figure out how we would do this in our environment. We have a pipeline that runs other jobs using the build line in a declarative pipeline... I am not sure I would redo everything to see if this would work, or for this purpose alone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants