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

francischuang pushed a commit to branch test-site
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/test-site by this push:
     new cff9e8b  Add Jenkinsfile for automated site build
cff9e8b is described below

commit cff9e8bf09b8b369117a1b58f551ca1c555165c4
Author: Francis Chuang <[email protected]>
AuthorDate: Sat Jun 15 15:45:19 2019 +1000

    Add Jenkinsfile for automated site build
---
 Jenkinsfile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5350d1a..0637aec 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -14,6 +14,9 @@ pipeline {
     }
 
     stages {
+        when {
+            branch 'test-site'
+        }
         stage('Build') {
             steps {
                 dir ("site") {
@@ -37,9 +40,12 @@ pipeline {
                 echo 'Deploying website to git repository'
                 dir ("site/target") {
                     sh '''
-                        git config --global user.name
-                        git config user.name
-                        git config --list
+                        git init
+                        git remote add origin 
https://github.com/apache/calcite-site
+                        git reset origin/master --soft
+
+                        git reset -- apidocs/
+
                     '''
                 }
                 echo "Deployment completed."

Reply via email to