build(jenkins): Use new style stage blocks to remove deprecation warnings
-def mavenVersion='3.3.9'
+def mavenVersion='3.5.0'
//We need a node so that we can have access to environemnt variables.
//The allocated node will actually be the Jenkins master (which is expected to provide these variables) as long as it has available executors.
node {
@@ -20,18 +20,21 @@ node {
checkout scm
- stage 'Build'
+ stage('Build') {
container(name: 'maven') {
sh "mvn -U clean install fabric8:build -Pci -Duser.home=/home/jenkins"
}
+ }
- stage 'System Tests'
+ stage('System Tests') {
test(component: 'syndesis-rest', namespace: "${testingNamespace}", serviceAccount: 'jenkins')
+ }
if ("master" == branch) {
- stage 'Rollout'
+ stage('Rollout') {
tag(sourceProject: 'syndesis-ci', imageStream: 'syndesis-rest')
rollout(deploymentConfig: 'syndesis-rest', namespace: 'syndesis-staging')
+ }
} else {
echo "Branch: ${branch} is not master. Skipping rollout"
}
