You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2018/05/09 09:23:08 UTC
[incubator-plc4x] branch master updated: Some more work on getting
the new build agent working. - Enabled the deployment of the site from the
pipeline.
This is an automated email from the ASF dual-hosted git repository.
cdutz 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 32972f4 Some more work on getting the new build agent working. - Enabled the deployment of the site from the pipeline.
32972f4 is described below
commit 32972f4054f932effd4b214a01e607be3bd1322c
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Wed May 9 11:23:04 2018 +0200
Some more work on getting the new build agent working.
- Enabled the deployment of the site from the pipeline.
---
Jenkinsfile | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 1454e30..a33b693 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -156,7 +156,8 @@ pipeline {
steps {
echo 'Staging Site'
sh 'mvn -P${JENKINS_PROFILE} site:stage'
- stash includes: 'target/staging/**/*', name: 'siteStageDir'
+ // Stash the generated site so we can publish it on the 'git-website' node.
+ stash includes: 'target/staging/**/*', name: 'plc4x-site'
}
}
@@ -164,7 +165,7 @@ pipeline {
when {
branch 'master'
}
- // Only the nodes labeled 'git-websites' have the credentials to commit to the .
+ // Only the nodes labeled 'git-websites' have the credentials to commit to the.
agent {
node {
label 'git-websites'
@@ -172,9 +173,10 @@ pipeline {
}
steps {
echo 'Deploying Site'
- unstash 'siteStageDir'
- // 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} scm-publish:publish-scm'
+ // Unstash the previously stashed site.
+ unstash 'plc4x-site'
+ // Publish the site with the scm-publish plugin.
+ sh 'mvn -P${JENKINS_PROFILE} scm-publish:publish-scm'
}
}
--
To stop receiving notification emails like this one, please contact
cdutz@apache.org.