Commit 25b8706e authored by Sam Gleske's avatar Sam Gleske

Discard old builds and do not resume on restart

Pipelines will no longer resume on restart because GIMP builds will
generally fail if this situation occurs even with a resume.  A resume
will make the error logs more confusing.

This change will also only keep the latest 50 builds per project.
parent 059c280c
......@@ -115,6 +115,12 @@ Boolean isDependentBuildReady(String dependency) {
This is the main execution.
def call() {
//discard builds when counts goes above 50
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '50')),
//do not resume pipelines if Jenkins restarts mid-build, consider it failed
//e.g. project = gimp
String project = env.JOB_NAME.tokenize('/')[0]
//e.g. -e GIMP_BRANCH=master -e GEGL_BRANCH=master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment