use 'workspace-cleanup' plugin in publisher 95/60595/1
authordongwenjuan <dong.wenjuan@zte.com.cn>
Mon, 6 Aug 2018 08:51:39 +0000 (16:51 +0800)
committerdongwenjuan <dong.wenjuan@zte.com.cn>
Mon, 6 Aug 2018 08:51:39 +0000 (16:51 +0800)
Change-Id: I4db7c0cda5485dbc756a22b9cbde298612241274
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
jjb/doctor/doctor.yaml
jjb/global/releng-macros.yaml

index 6a8e07b..dae280e 100644 (file)
       - archive:
           artifacts: 'doctor_tests/*.log'
       - email-jenkins-admins-on-failure
-      - 'post-clean-workspace'
-
+      - workspace-cleanup
 
 #####################################
 # trigger macros
index d2da7f6..b282cff 100644 (file)
                 - shell:
                     !include-raw: installer-report.sh
           mark-unstable-if-failed: true
-
-- publisher:
-    name: 'post-clean-workspace'
-    publishers:
-      - postbuildscript:
-          builders:
-            - role: SLAVE
-              build-on:
-                - ABORTED
-                - FAILURE
-                - NOT_BUILT
-                - UNSTABLE
-                - SUCCESS
-              build-steps:
-                - shell: |
-                    #!/bin/bash
-                    set -o errexit
-                    set -o nounset
-                    set -o pipefail
-                    sudo /bin/rm -rf "$WORKSPACE"