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-redback-core.git
The following commit(s) were added to refs/heads/master by this push:
new 39739b0 Cleanup of build file
39739b0 is described below
commit 39739b0056bcdcfceefee8687ad69975bfd1a6e8
Author: Martin Stockhammer <[email protected]>
AuthorDate: Sun May 6 16:59:23 2018 +0200
Cleanup of build file
---
Jenkinsfile | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 6097149..ceec0c3 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -49,7 +49,7 @@ pipeline {
}
post {
failure {
- notifyBuild("Checkout failure
(${currentBuild.currentResult})")
+ notifyBuild("Checkout failure")
}
}
}
@@ -76,7 +76,7 @@ pipeline {
// -Dmaven.compiler.fork=false: Do not 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"
+ sh "mvn clean deploy -B -U -e -fae -T2"
}
}
}
@@ -86,15 +86,9 @@ pipeline {
}
success {
archiveArtifacts '**/target/*.jar'
- 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")
}
}
}
@@ -102,11 +96,19 @@ pipeline {
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")
+ }
+ }
+ }
}
}
@@ -134,4 +136,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
[email protected].