This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-wayang.git


The following commit(s) were added to refs/heads/main by this push:
     new ff0cb9f  - Changed the Jenkinsfile to deploy for "main" not "develop"
ff0cb9f is described below

commit ff0cb9f5c9e3853531b154bc40d4a7294da485e6
Author: Christofer Dutz <[email protected]>
AuthorDate: Thu Feb 11 18:16:40 2021 +0100

    - Changed the Jenkinsfile to deploy for "main" not "develop"
---
 Jenkinsfile | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 600309b..f32caef 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -78,7 +78,7 @@ pipeline {
         stage('Build') {
             when {
                 expression {
-                    env.BRANCH_NAME != 'develop'
+                    env.BRANCH_NAME != 'main'
                 }
             }
             steps {
@@ -93,9 +93,9 @@ pipeline {
             }
         }
 
-        stage('Build develop') {
+        stage('Build main') {
             when {
-                branch 'develop'
+                branch 'main'
             }
             steps {
                 echo 'Building'
@@ -122,7 +122,7 @@ pipeline {
 
         stage('Deploy') {
             when {
-                branch 'develop'
+                branch 'main'
             }
             // Only the official build nodes have the credentials to deploy 
setup.
             agent {
@@ -156,7 +156,7 @@ pipeline {
         // If this build failed, send an email to the list.
         failure {
             script {
-                if(env.BRANCH_NAME == "develop") {
+                if(env.BRANCH_NAME == "main") {
                     emailext(
                         subject: "[BUILD-FAILURE]: Job '${env.JOB_NAME} 
[${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]'",
                         body: """
@@ -174,7 +174,7 @@ Check console output at "<a 
href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BRANC
         // If this build didn't fail, but there were failing tests, send an 
email to the list.
         unstable {
             script {
-                if(env.BRANCH_NAME == "develop") {
+                if(env.BRANCH_NAME == "main") {
                     emailext(
                         subject: "[BUILD-UNSTABLE]: Job '${env.JOB_NAME} 
[${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]'",
                         body: """
@@ -195,7 +195,7 @@ Check console output at "<a 
href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BRANC
             // (in this cae we probably don't have to do any post-build 
analysis)
             deleteDir()
             script {
-                if ((env.BRANCH_NAME == "develop") && 
(currentBuild.previousBuild != null) && (currentBuild.previousBuild.result != 
'SUCCESS')) {
+                if ((env.BRANCH_NAME == "main") && (currentBuild.previousBuild 
!= null) && (currentBuild.previousBuild.result != 'SUCCESS')) {
                     emailext (
                         subject: "[BUILD-STABLE]: Job '${env.JOB_NAME} 
[${env.BRANCH_NAME}] [${env.BUILD_NUMBER}]'",
                         body: """

Reply via email to