How to clean up Jenkins job so build stability is not affected

How would someone clean up a Jenkins job such that the build stability rating is reset and not affected by previous builds? I created a build job and through trial and error, I finally got the job to compile/build correctly. However, I don’t want all the previous test builds to affect the build stability rating. I tried deleting all the builds and restarting Jenkins but it still says 20 of the last 25 builds failed. I looked in the $JENKINS_HOME directory (~/.jenkins) and couldn’t find anything regarding build stability. Thanks.

  • How to request for Crumb issuer for jenkins
  • Publish build artifacts to github page
  • How to dynamically pick a git branch to use in Jenkins build
  • Maven fails to parse POMs at jenkins
  • Not getting the coverage on new code in sonar dashboard
  • How can i update a jenkins job using the api
  • Jenkins : poll-mailbox-trigger-plugin and SMTP
  • Executing powershell command directly in jenkins pipeline
  • Jenkins: how to run two different Sonar analysis in a Maven build?
  • Jenkins pipeline bubble up the shell exit code to fail the stage
  • merge before build in jenkins fails but should not
  • Write a batch script to edit text in a .cs file
  • One Solution collect form web for “How to clean up Jenkins job so build stability is not affected”

    When you configure the job you can tell it how long to keep the logs for – either days or build. Set this to one build to clear it out then reset it back again

    Discard old builds

    Git Baby is a git and github fan, let's start git clone.