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

olamy 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 50df55e  fix syntax
50df55e is described below

commit 50df55e3cc4e4ad362b94e060123e97d2c52341a
Author: olivier lamy <[email protected]>
AuthorDate: Sun Dec 30 11:17:40 2018 +1000

    fix syntax
    
    Signed-off-by: olivier lamy <[email protected]>
---
 Jenkinsfile | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index fa0ea05..c87fdc1 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -69,17 +69,22 @@ pipeline {
             cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: 
'.repository', type: 'EXCLUDE']]
         }    
         unstable {
-            asfStandardBuild.notifyBuild( "Unstable Build ")
+            scripts{
+                asfStandardBuild.notifyBuild( "Unstable Build ")
+            }
         }
         failure {
-            asfStandardBuild.notifyBuild( "Error in redback core build ")
+            scripts{
+                asfStandardBuild.notifyBuild( "Error in redback core build ")
+            }
         }
         success {
             script {
                 def previousResult = currentBuild.previousBuild?.result
-                if (previousResult && !currentBuild.resultIsWorseOrEqualTo( 
previousResult ) )
-                {
-                    notifyBuild( "Fixed" )
+                if (previousResult && !currentBuild.resultIsWorseOrEqualTo( 
previousResult ) ) {
+                    scripts{
+                        asfStandardBuild.notifyBuild( "Fixed" )
+                    }
                 }
             }
         }

Reply via email to