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 21:27:32 UTC

[jspwiki-site] branch jbake updated: spaces instead of tabs; echo exception when building; don't set recipientProviders

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 b4035d2  spaces instead of tabs; echo exception when building; don't set recipientProviders
b4035d2 is described below

commit b4035d27f9ba6a47e6f86fe402ad02122c7e34ee
Author: Juan Pablo Santos Rodríguez <ju...@gmail.com>
AuthorDate: Mon Oct 8 23:27:10 2018 +0200

    spaces instead of tabs; echo exception when building; don't set recipientProviders
---
 Jenkinsfile | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index b093073..1f68655 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -31,7 +31,7 @@ try {
         echo "Will use Maven $MAVEN_3_LATEST"
         
         stage( "clone $jbake and $asfsite branches" ) {
-		    cleanWs()
+            cleanWs()
             dir( jbake ) {
                 git branch: jbake, url: "https://$repo", credentialsId: creds
             }
@@ -55,28 +55,29 @@ try {
 
     node( 'git-websites' ) {
         stage( 'retrieve workspace' ) {
-		    cleanWs()
+            cleanWs()
             unstash 'workspace'
         }
         stage( 'publish site' ) {
             dir( asfsite ) {
                 sh "cp -rf ../$jbake/target/content/* ./"
-				withCredentials( [ usernamePassword( credentialsId: creds, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME' ) ] ) {
+                withCredentials( [ usernamePassword( credentialsId: creds, passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME' ) ] ) {
                     sh 'git add .'
                     sh 'git commit -m "Automatic Site Publish by Buildbot"'
+                    echo "pushing to $repo"
                     sh "git push https://${GIT_USERNAME}:${GIT_PASSWORD}@$repo asf-site"
-				}
+                }
             }
         }
     }
-	
-	currentBuild.result = 'SUCCESS'
-	
+    
+    currentBuild.result = 'SUCCESS'
+    
 } catch( Exception err ) {
+    echo err
     currentBuild.result = 'FAILURE'
 } finally {
     emailext body: "See ${env.BUILD_URL}",
-             recipientProviders: [[$class: 'CulpritsRecipientProvider'], [$class: 'FailingTestSuspectsRecipientProvider'], [$class: 'FirstFailingBuildSuspectsRecipientProvider']], 
              replyTo: 'dev@jspwiki.apache.org', 
              to: 'commits@jspwiki.apache.org',
              subject: "[${env.JOB_NAME}] build ${env.BUILD_DISPLAY_NAME} - ${currentBuild.result}"