You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2022/12/18 11:00:34 UTC
[iotdb] 01/03: disable integration in jenkins
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
commit 22c817b627198f70172f731d8d9fadd15928e245
Author: xiangdong huang <hx...@timecho.com>
AuthorDate: Sat Dec 17 21:56:00 2022 +0800
disable integration in jenkins
---
Jenkinsfile | 33 ++++++++-------------------------
1 file changed, 8 insertions(+), 25 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index ba0c56529d..174639063d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -87,7 +87,7 @@ pipeline {
}
steps {
echo 'Building and Unit Test...'
- sh "mvn ${MVN_TEST_FAIL_IGNORE} clean install -pl '!integration-test'"
+ sh "mvn -T 1C ${MVN_TEST_FAIL_IGNORE} clean install -pl '!integration-test'"
}
post {
always {
@@ -105,7 +105,7 @@ pipeline {
}
steps {
echo 'Integration Test...'
- sh "mvn ${MVN_TEST_FAIL_IGNORE} verify -P ClusterIT -pl integration-test -am -DskipUTs -DintegrationTest.threadCount=3 -DintegrationTest.forkCount=3"
+ sh "mvn ${MVN_TEST_FAIL_IGNORE} verify -P ClusterIT -pl integration-test -am -DskipUTs -DintegrationTest.threadCount=5 -DintegrationTest.forkCount=5"
}
post {
always {
@@ -115,37 +115,20 @@ pipeline {
}
}
-// stage('Build') {
-// when {
-// branch 'master'
-// }
-// steps {
-// echo 'Building'
-// 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 -P ClusterIT -pl '!integration'"
-// }
-// post {
-// always {
-// junit(testResults: '**/surefire-reports/*.xml', allowEmptyResults: true)
-// junit(testResults: '**/failsafe-reports/*.xml', allowEmptyResults: true)
-// }
-// }
-// }
-
- stage('Build') {
+ stage('Deploy Prepare') {
+ // when {
+ // branch 'master'
+ // }
when {
expression {
- env.BRANCH_NAME ==~ "(master)|(rel/.*) |(jenkins-.*)"
+ env.BRANCH_NAME ==~ "(master)|(rel/.*)"
}
}
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"
+ sh "mvn -T 1C -DaltDeploymentRepository=snapshot-repo::default::file:./local-snapshots-dir clean deploy -DskipTests"
}
post {
always {