Skip to content

Commit

Permalink
Disable concurrent builds, enable s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Jan 13, 2023
1 parent 31755a4 commit cc5cadb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env groovy

// Only one build running at a time, stop prior build if new build starts
def buildNumber = BUILD_NUMBER as int; if (buildNumber > 1) milestone(buildNumber - 1); milestone(buildNumber) // Thanks to jglick

/*
* Making sure that we can follow the steps necessary to install the latest
* release for Debian/Ubuntu machine.
Expand All @@ -11,10 +8,14 @@ def buildNumber = BUILD_NUMBER as int; if (buildNumber > 1) milestone(buildNumbe
properties([
buildDiscarder(logRotator(numToKeepStr: '5')),
pipelineTriggers([cron('@hourly')]),
// Only one build running at a time, stop prior build if new build starts
disableConcurrentBuilds(abortPrevious: true),
// Do not resume build after controller restart
disableResume(),
])

// Define processors
def Processors = [ "arm64docker", "docker" ] // "ppc64ledocker", "s390xdocker" excluded because test machine cannot download the jenkins package
def Processors = [ "arm64docker", "s390xdocker", "docker" ] // "ppc64ledocker", excluded because test machine cannot download the jenkins package

// Generate a parallel step for each label in labels
def generateParallelSteps(labels) {
Expand Down

0 comments on commit cc5cadb

Please sign in to comment.