如何清理Jenkins的工作,以免影响构建稳定性 [英] How to clean up Jenkins job so build stability is not affected

查看:190
本文介绍了如何清理Jenkins的工作,以免影响构建稳定性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人将如何清理Jenkins的工作,以使构建稳定性等级被重置且不受以前的构建影响?我创建了一个构建作业,通过反复试验,终于得到了正确编译/构建的作业.但是,我不希望以前的所有测试版本都影响版本稳定性等级.我尝试删除所有构建并重新启动Jenkins,但仍然显示最近25个构建中的20个失败.我查看了$ JENKINS_HOME目录(〜/.jenkins),找不到关于构建稳定性的任何信息.谢谢.

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.

推荐答案

配置作业时,您可以告诉它将日志保留多长时间-几天或几天.将其设置为一个版本以清除它,然后再次将其重置

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

这篇关于如何清理Jenkins的工作,以免影响构建稳定性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆