offline building of site deploy to improve performance.
[utils] / Jenkinsfile
index 4f5ec5fe6bfeeb065072d519a7b092f677143bc7..13ad14a6925011630fb8cd247c02a55e822e30cc 100644 (file)
@@ -29,7 +29,7 @@ pipeline {
               echo ""
               echo "Building site for $dir"
               echo ""
-              mvn -N -Ddistrib=/data/www/http.utils.wamblee.org/ site site:deploy
+              mvn -N -o -Ddistrib=/data/www/http.utils.wamblee.org/ site site:deploy
               echo ""
               echo ""
             )
@@ -49,5 +49,10 @@ pipeline {
       junit '**/surefire-reports/*.xml'
       cobertura coberturaReportFile: '**/target/site/cobertura/coverage.xml'
     }
+    changed {
+      mail to: "jenkins@wamblee.org",
+      subject: "jenkins build:${currentBuild.currentResult}: ${env.JOB_NAME}",
+      body: "${currentBuild.currentResult}: Job ${env.JOB_NAME}\nMore Info can be found here: ${env.BUILD_URL}"
+    }
   }
 }