Skip to content

Commit 02fad9b

Browse files
committed
Switch generic node closure to running on a 'linux' node.
Change project properties definition to nested closure.
1 parent b353648 commit 02fad9b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Jenkinsfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
def projectProperties = [
2-
[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '5']],
3-
pipelineTriggers([cron('@daily')])
4-
]
5-
6-
properties(projectProperties)
1+
properties([
2+
buildDiscarder(logRotator(numToKeepStr: '10')),
3+
pipelineTriggers([
4+
cron('@daily')
5+
]),
6+
])
77

88
def SUCCESS = hudson.model.Result.SUCCESS.toString()
99
currentBuild.result = SUCCESS
@@ -12,7 +12,7 @@ try {
1212
parallel check: {
1313
stage('Check') {
1414
timeout(time: 10, unit: 'MINUTES') {
15-
node {
15+
node('linux') {
1616
checkout scm
1717
try {
1818
withEnv(["JAVA_HOME=${tool 'jdk8'}"]) {

0 commit comments

Comments
 (0)