Jenkinsfile: Switch to declarative-style Jenkins pipeline
-properties([
- [$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', numToKeepStr: '20']],
- [$class: 'GithubProjectProperty', projectUrlStr: 'https://github.com/coreos/matchbox'],
- [$class: 'PipelineTriggersJobProperty', triggers: [
- [$class: 'GitHubPushTrigger'],
- ]]
-])
+pipeline {
+ agent none
+
+ options {
+ timeout(time:45, unit:'MINUTES')
+ buildDiscarder(logRotator(numToKeepStr:'20'))
+ }
+
+ stages {
+ stage('Cluster Tests') {
+ steps {
parallel (
etcd3: {
node('fedora && bare-metal') {
- stage('etcd3') {
timeout(time:5, unit:'MINUTES') {
checkout scm
sh '''#!/bin/bash -e
@@ -16,11 +19,9 @@ parallel (
'''
}
}
- }
},
bootkube: {
node('fedora && bare-metal') {
- stage('bootkube') {
timeout(time:12, unit:'MINUTES') {
checkout scm
sh '''#!/bin/bash -e
@@ -29,11 +30,9 @@ parallel (
'''
}
}
- }
},
"etcd3-terraform": {
node('fedora && bare-metal') {
- stage('etcd3-terraform') {
timeout(time:10, unit:'MINUTES') {
checkout scm
sh '''#!/bin/bash -e
@@ -41,6 +40,9 @@ parallel (
'''
}
}
- }
},
)
+ }
+ }
+ }
+}
