You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2018/05/06 14:57:55 UTC

[archiva] branch master updated: Cleanup of build file

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

martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva.git


The following commit(s) were added to refs/heads/master by this push:
     new 9add27a  Cleanup of build file
9add27a is described below

commit 9add27af0bc1329a8cdb15b71cc47720e0443960
Author: Martin Stockhammer <ma...@apache.org>
AuthorDate: Sun May 6 16:57:46 2018 +0200

    Cleanup of build file
---
 Jenkinsfile       | 26 ++++++++++++++------------
 Jenkinsfile-itest | 12 ++++++------
 2 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 4571452..dafce91 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -79,10 +79,10 @@ pipeline {
                                 // -U: Force snapshot update
                                 // -e: Produce execution error messages
                                 // -fae: Fail at the end
-                                // -Dmaven.compiler.fork=false: Do not compile in a separate forked process
+                                // -Dmaven.compiler.fork=true: Do compile in a separate forked process
                                 // -Dmaven.test.failure.ignore=true: Do not stop, if some tests fail
                                 // -Pci-build: Profile for CI-Server
-                                sh "mvn clean deploy -B -U -e -fae -Dmaven.test.failure.ignore=true -T2 -Dmaven.compiler.fork=false -Pci-build"
+                                sh "mvn clean deploy -B -U -e -fae -T2 -Dmaven.compiler.fork=true -Pci-build"
                             }
                 }
             }
@@ -92,32 +92,34 @@ pipeline {
                 }
                 success {
                     archiveArtifacts '**/target/*.war,**/target/*-bin.zip'
-                    script {
-                        def previousResult = currentBuild.previousBuild?.result
-                        if (previousResult && !currentBuild.resultIsWorseOrEqualTo(previousResult)) {
-                            notifyBuild("Fixed: ${currentBuild.currentResult}")
-                        }
-                    }
                 }
                 failure {
-                    notifyBuild("Build / Test failure (${currentBuild.currentResult})")
+                    notifyBuild("Failure in BuildAndDeploy stage")
                 }
             }
         }
         stage('IntegrationTest') {
             steps {
-                build(job:"${INTEGRATION_PIPELINE}/archiva/${env.BRANCH_NAME}", propagate:false, quietPeriod:10)
+                build(job: "${INTEGRATION_PIPELINE}/archiva/${env.BRANCH_NAME}", propagate: false, quietPeriod: 10)
             }
         }
     }
 
     post {
         unstable {
-            notifyBuild("Unstable Build (${currentBuild.currentResult})")
+            notifyBuild("Unstable Build")
         }
         always {
             cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.repository', type: 'EXCLUDE']]
         }
+        success {
+            script {
+                def previousResult = currentBuild.previousBuild?.result
+                if (previousResult && !currentBuild.resultIsWorseOrEqualTo(previousResult)) {
+                    notifyBuild("Fixed")
+                }
+            }
+        }
     }
 }
 
@@ -145,4 +147,4 @@ def notifyBuild(String buildStatus) {
     )
 }
 
-// vim: et:ts=2:sw=2:ft=groovy
+// vim: et:ts=4:sw=4:ft=groovy
diff --git a/Jenkinsfile-itest b/Jenkinsfile-itest
index fe7fea4..5e33c50 100644
--- a/Jenkinsfile-itest
+++ b/Jenkinsfile-itest
@@ -47,7 +47,7 @@ pipeline {
             }
             post {
                 failure {
-                    notifyBuild("Checkout failure (${currentBuild.currentResult})")
+                    notifyBuild("Checkout failure")
                 }
             }
         }
@@ -89,7 +89,7 @@ pipeline {
                     junit testResults: '**/target/failsafe-reports/TEST-*.xml'
                 }
                 failure {
-                    notifyBuild("Build / Test failure (${currentBuild.currentResult})")
+                    notifyBuild("Failure in Htmlunit test stage")
                 }
             }
         }
@@ -139,7 +139,7 @@ pipeline {
                     junit testResults: '**/target/failsafe-reports/TEST-*.xml'
                 }
                 failure {
-                    notifyBuild("Build / Test failure (${currentBuild.currentResult})")
+                    notifyBuild("Failure in Chrome test stage")
                 }
             }
         }
@@ -147,7 +147,7 @@ pipeline {
     }
     post {
         unstable {
-            notifyBuild("Unstable Build (${currentBuild.currentResult})")
+            notifyBuild("Unstable Build")
         }
         always {
             cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.repository', type: 'EXCLUDE']]
@@ -156,7 +156,7 @@ pipeline {
             script {
                 def previousResult = currentBuild.previousBuild?.result
                 if (previousResult && !currentBuild.resultIsWorseOrEqualTo(previousResult)) {
-                    notifyBuild("Fixed: ${currentBuild.currentResult}")
+                    notifyBuild("Fixed")
                 }
             }
         }
@@ -188,4 +188,4 @@ def notifyBuild(String buildStatus) {
     )
 }
 
-// vim: et:ts=2:sw=2:ft=groovy
+// vim: et:ts=4:sw=4:ft=groovy

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