You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2018/10/08 20:38:12 UTC
[jspwiki-site] branch jbake updated: clean workspace before
anything; git push
This is an automated email from the ASF dual-hosted git repository.
juanpablo pushed a commit to branch jbake
in repository https://gitbox.apache.org/repos/asf/jspwiki-site.git
The following commit(s) were added to refs/heads/jbake by this push:
new bf68d67 clean workspace before anything; git push
bf68d67 is described below
commit bf68d671b0e4202641bb654534f55a68724e2c61
Author: Juan Pablo Santos RodrÃguez <ju...@gmail.com>
AuthorDate: Mon Oct 8 22:37:31 2018 +0200
clean workspace before anything; git push
---
Jenkinsfile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index abf6c14..98fbd76 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -31,6 +31,7 @@ try {
echo "Will use Maven $MAVEN_3_LATEST"
stage( "clone $jbake and $asfsite branches" ) {
+ cleanWs()
dir( jbake ) {
git branch: jbake, url: repo, credentialsId: creds
}
@@ -54,6 +55,7 @@ try {
node( 'git-websites' ) {
stage( 'retrieve workspace' ) {
+ cleanWs()
unstash 'workspace'
}
stage( 'publish site' ) {
@@ -61,7 +63,7 @@ try {
sh "cp -rf ../$jbake/target/content/* ./"
sh 'git add .'
sh 'git commit -m "Automatic Site Publish by Buildbot"'
- sh 'push origin asf-site'
+ sh 'git push origin asf-site'
}
}
}