You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2018/02/27 15:28:17 UTC

[incubator-plc4x] branch master updated: use stash to transport target to deploy site stage

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

sruehl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e75b3e  use stash to transport target to deploy site stage
6e75b3e is described below

commit 6e75b3e8181a756d4f714e4df132bde07191886f
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Feb 27 16:28:14 2018 +0100

    use stash to transport target to deploy site stage
---
 Jenkinsfile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5d16401..4cbd763 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -137,6 +137,7 @@ pipeline {
             steps {
                 echo 'Staging Site'
                 sh 'mvn -P${JENKINS_PROFILE} site:stage'
+                stash includes: 'target/**/*', name: 'buildDir'
             }
         }
 
@@ -151,9 +152,9 @@ pipeline {
             }
             steps {
                 echo 'Deploy Site'
+                unstash 'buildDir'
                 // We need to regenerate the site for deploy as we switch the node. We could save time by stash/unstash.
-                sh 'mvn -P${JENKINS_PROFILE} site:site'
-                sh 'mvn -P${JENKINS_PROFILE} site:deploy'
+                sh 'mvn -P${JENKINS_PROFILE} scm-publish:publish-scm'
             }
         }
 

-- 
To stop receiving notification emails like this one, please contact
sruehl@apache.org.