Switch generic node closure to running on a 'linux' node.

Change project properties definition to nested closure.
This commit is contained in:
John Blum
2019-05-29 10:09:28 -07:00
parent b353648b79
commit 02fad9b6d0

14
Jenkinsfile vendored
View File

@@ -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()
currentBuild.result = SUCCESS
@@ -12,7 +12,7 @@ try {
parallel check: {
stage('Check') {
timeout(time: 10, unit: 'MINUTES') {
node {
node('linux') {
checkout scm
try {
withEnv(["JAVA_HOME=${tool 'jdk8'}"]) {