Switch generic node closure to running on a 'linux' node.
Change project properties definition to nested closure.
This commit is contained in:
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@@ -1,9 +1,9 @@
|
|||||||
def projectProperties = [
|
properties([
|
||||||
[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '5']],
|
buildDiscarder(logRotator(numToKeepStr: '10')),
|
||||||
pipelineTriggers([cron('@daily')])
|
pipelineTriggers([
|
||||||
]
|
cron('@daily')
|
||||||
|
]),
|
||||||
properties(projectProperties)
|
])
|
||||||
|
|
||||||
def SUCCESS = hudson.model.Result.SUCCESS.toString()
|
def SUCCESS = hudson.model.Result.SUCCESS.toString()
|
||||||
currentBuild.result = SUCCESS
|
currentBuild.result = SUCCESS
|
||||||
@@ -12,7 +12,7 @@ try {
|
|||||||
parallel check: {
|
parallel check: {
|
||||||
stage('Check') {
|
stage('Check') {
|
||||||
timeout(time: 10, unit: 'MINUTES') {
|
timeout(time: 10, unit: 'MINUTES') {
|
||||||
node {
|
node('linux') {
|
||||||
checkout scm
|
checkout scm
|
||||||
try {
|
try {
|
||||||
withEnv(["JAVA_HOME=${tool 'jdk8'}"]) {
|
withEnv(["JAVA_HOME=${tool 'jdk8'}"]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user