You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ba...@apache.org on 2020/11/12 20:26:48 UTC

[incubator-hop-docs] 17/37: change checkout

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

bartmaer pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-hop-docs.git

commit 817f2914029fdc9bdb8222d8f6ad00045bb90688
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Sun Nov 8 16:52:13 2020 +0100

    change checkout
---
 Jenkinsfile | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index d280a94..cd83504 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -85,11 +85,26 @@ pipeline {
                 '''
                 echo 'Generate new Navigation'
                 sh './generate_navigation.sh'
-                sh 'git add .'
-                sh 'git commit -m "Documentation updated to $GIT_COMMIT"'
-                sh 'git push --force origin HEAD:asf-site'
                 }
         }
+        stage('Deploy') {
+            when {
+                branch 'asf-site'
+            }
+            steps {
+                dir('deploy/staging') {
+                    deleteDir()
+                    sh 'git clone -b asf-site https://gitbox.apache.org/repos/asf/incubator-hop-docs.git .'
+                    sh "cp -R $WORKSPACE/hop-dev-manual/. ./hop-dev-manual/"
+                    sh "cp -R $WORKSPACE/hop-resources-manual/. ./hop-resources-manual/"
+                    sh "cp -R $WORKSPACE/hop-tech-manual/. ./hop-tech-manual/"
+                    sh "cp -R $WORKSPACE/hop-user-manual/. ./hop-user-manual/"
+                    sh 'git add .'
+                    sh 'git commit -m "Documentation updated to $(git rev-parse --short HEAD)"'
+                    //sh 'git push origin asf-site'
+                }
+            }
+       }
         stage('Website update') {
             when {
                 branch 'asf-site'
@@ -100,7 +115,6 @@ pipeline {
             }
         }
     }
-
     post {
         always {
             cleanWs()