You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/12/10 08:54:32 UTC
[iotdb] 01/01: Fix deploying site fail caused by CI
This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch deplo
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit b528107e082ee426f3481eb17888cbe19371dd7c
Author: HTHou <hh...@outlook.com>
AuthorDate: Fri Dec 10 16:53:48 2021 +0800
Fix deploying site fail caused by CI
---
Jenkinsfile | 42 +++++++++++++++++++++---------------------
1 file changed, 21 insertions(+), 21 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 0d64df0..9f809b5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -58,6 +58,27 @@ pipeline {
}
}
+ stage('Deploy site') {
+ when {
+ branch 'master'
+ }
+ // Only the nodes labeled 'git-websites' have the credentials to commit to the.
+ agent {
+ node {
+ label 'git-websites'
+ }
+ }
+ steps {
+ // Publish the site with the scm-publish plugin.
+ sh 'mvn -P site -P compile-site -P compile-site-0.12 -P compile-site-0.11 -P compile-site-0.10 -P compile-site-0.9 -P compile-site-0.8 compile scm-publish:publish-scm -pl site'
+
+ // Clean up the snapshots directory (freeing up more space after deploying).
+ dir("target") {
+ deleteDir()
+ }
+ }
+ }
+
stage('Build (not master)') {
when {
expression {
@@ -124,27 +145,6 @@ pipeline {
}
}
- stage('Deploy site') {
- when {
- branch 'master'
- }
- // Only the nodes labeled 'git-websites' have the credentials to commit to the.
- agent {
- node {
- label 'git-websites'
- }
- }
- steps {
- // Publish the site with the scm-publish plugin.
- sh 'mvn -P site -P compile-site -P compile-site-0.12 -P compile-site-0.11 -P compile-site-0.10 -P compile-site-0.9 -P compile-site-0.8 compile scm-publish:publish-scm -pl site'
-
- // Clean up the snapshots directory (freeing up more space after deploying).
- dir("target") {
- deleteDir()
- }
- }
- }
-
stage('Cleanup') {
steps {
echo 'Cleaning up the workspace'