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 send “back to normal” notifications in Jenkins Declarative Pipeline?
  • JENKINS : Is there a Jenkins Variable to get user name who did last commit in stash
  • Jenkins keeps adding job in the build queue and keeps building them
  • How to trigger a Jenkins job by another job at a certain time?
  • Auto generate/remove jenkins jobs
  • jenkins cant pull from git repository using windows batch command
  • Running ios-sim with Jenkins
  • what is difference between .hpi and .jpi of jenkins plugins?
  • Github Pull Request Plugin
  • Jenkins kills JBoss server when job finishes
  • How to automate a job in Jenkins?
  • Using an arbitrary plugin in Jenins 2 Pipeline scripts
  • 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.