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

hxd pushed a commit to branch jenkins-disable-integration
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/jenkins-disable-integration by 
this push:
     new da8ef3f18b disable integration in jenkins
da8ef3f18b is described below

commit da8ef3f18b6f2a1c7992515ae7d7914f1aaaac6d
Author: xiangdong huang <[email protected]>
AuthorDate: Sat Dec 17 21:03:14 2022 +0800

    disable integration in jenkins
---
 Jenkinsfile | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index c80b6befc7..ba0c56529d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -82,7 +82,7 @@ pipeline {
         stage('Build and UT') {
             when {
                 expression {
-                    env.BRANCH_NAME ==~ /(master|rel/.*|jenkins-.*)/
+                    env.BRANCH_NAME ==~ "(master)|(rel/.*) |(jenkins-.*)"
                 }
             }
             steps {
@@ -100,12 +100,12 @@ pipeline {
         stage('Integration Test') {
             when {
                 expression {
-                    env.BRANCH_NAME ==~ /(master|rel/.*|jenkins-.*)/
+                    env.BRANCH_NAME ==~ "(master)|(rel/.*) |(jenkins-.*)"
                 }
             }
             steps {
                 echo 'Integration Test...'
-                sh "mvn ${MVN_TEST_FAIL_IGNORE} verify -P ClusterIT -pl 
integration-test -am -DskipUTs -DintegrationTest.threadCount=2 
-DintegrationTest.forkCount=2"
+                sh "mvn ${MVN_TEST_FAIL_IGNORE} verify -P ClusterIT -pl 
integration-test -am -DskipUTs -DintegrationTest.threadCount=3 
-DintegrationTest.forkCount=3"
             }
             post {
                 always {
@@ -134,6 +134,27 @@ pipeline {
 //             }
 //         }
 
+        stage('Build') {
+            when {
+                expression {
+                    env.BRANCH_NAME ==~ "(master)|(rel/.*) |(jenkins-.*)"
+                }
+            }
+            steps {
+                echo 'Deploy Prepare'
+                sh 'mvn clean'
+                // We'll deploy to a relative directory so we can
+                // deploy new versions only if the entire build succeeds
+                sh "mvn ${MVN_TEST_FAIL_IGNORE} 
-DaltDeploymentRepository=snapshot-repo::default::file:./local-snapshots-dir 
clean deploy -P get-jar-with-dependencies -DskipTests"
+            }
+            post {
+                always {
+                    junit(testResults: '**/surefire-reports/*.xml', 
allowEmptyResults: true)
+                    junit(testResults: '**/failsafe-reports/*.xml', 
allowEmptyResults: true)
+                }
+            }
+        }
+
         stage('Code Quality') {
             when {
                 branch 'master'

Reply via email to