This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to branch feature/SLING-7245
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git
The following commit(s) were added to refs/heads/feature/SLING-7245 by this
push:
new b848b6d SLING-7245 - Validate pull requests using Jenkins
b848b6d is described below
commit b848b6d4df9d3aa5a862fe4c8e9c154c344db96d
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Dec 20 16:46:05 2018 +0100
SLING-7245 - Validate pull requests using Jenkins
Use currentBuild.currentResult which is supposed to not be null when
checked at the end of the build.
---
vars/slingOsgiBundleBuild.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index 82b5434..998267e 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -84,7 +84,7 @@ def call(Map params = [:]) {
def processResult(def currentBuild, String previous) {
- String current = currentBuild.result
+ String current = currentBuild.currentResult
// values described at
https://javadoc.jenkins-ci.org/hudson/model/Result.html
// Note that we don't handle consecutive failures to prevent mail spamming