FIX: Sent Slack notification when Jenkins job is back to normal.
[infra/cicd.git] / jjb / global / jjb-macros.yaml
index 834b60fd145ee7ad0aac51dbd4b206d2536fa355..534e61c8d085c0be70e7a05fd2e65bd05e7d50c1 100644 (file)
           shallow-clone: false
           use-author: false
           ignore-notify: false
-          wipe-workspace: true
+          wipe-workspace: '{wipe_workspace}'
           prune: false
+          clean:
+            after: false
+            before: '{clean_before}'
           choosing-strategy: 'default'
 
 - scm:
           shallow-clone: false
           use-author: false
           ignore-notify: false
-          wipe-workspace: true
+          wipe-workspace: '{wipe_workspace}'
           prune: false
+          clean:
+            after: false
+            before: '{clean_before}'
           choosing-strategy: 'gerrit'
 
 # triggers for Nordix Gerrit
     publishers:
       - slack:
           room: '{slack-channel}'
-          notify-failure: True
+          notify-failure: true
+          notify-back-to-normal: true
 
 # property to discard old builds
 - property: