From 93faf97edd99f88d1d0d8033ee3701775c4254aa Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 29 May 2019 10:09:28 -0700 Subject: [PATCH] Switch generic node closure to running on a 'linux' node. Change project properties definition to nested closure. --- Jenkinsfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e57c0914..a22894fd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,9 @@ -def projectProperties = [ - [$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '5']], - pipelineTriggers([cron('@daily')]) -] - -properties(projectProperties) +properties([ + buildDiscarder(logRotator(numToKeepStr: '10')), + pipelineTriggers([ + cron('@daily') + ]), +]) def SUCCESS = hudson.model.Result.SUCCESS.toString() @@ -13,7 +13,7 @@ try { parallel check: { stage('Check') { timeout(time: 10, unit: 'MINUTES') { - node { + node('linux') { checkout scm try { withEnv(["JAVA_HOME=${tool 'jdk8'}"]) {