| 1 | publishers: |
| 2 | - postbuildscript: |
| 3 | mark-unstable-if-failed: true |
| 4 | generic-script: |
| 5 | - file-path: '/fakepath/generic' |
| 6 | role: MASTER |
| 7 | build-on: |
| 8 | - SUCCESS |
| 9 | - UNSTABLE |
| 10 | - file-path: '/fakepath/generic-two' |
| 11 | role: SLAVE |
| 12 | build-on: |
| 13 | - NOT_BUILT |
| 14 | - ABORTED |
| 15 | - FAILURE |
| 16 | execute-on: matrix |
| 17 | groovy-script: |
| 18 | - file-path: '/fakepath/groovy' |
| 19 | role: MASTER |
| 20 | build-on: |
| 21 | - SUCCESS |
| 22 | - UNSTABLE |
| 23 | execute-on: axes |
| 24 | - file-path: '/fakepath/groovy-too' |
| 25 | role: SLAVE |
| 26 | build-on: |
| 27 | - NOT_BUILT |
| 28 | - ABORTED |
| 29 | - FAILURE |
| 30 | groovy: |
| 31 | - role: MASTER |
| 32 | build-on: |
| 33 | - SUCCESS |
| 34 | - UNSTABLE |
| 35 | execute-on: matrix |
| 36 | content: 'println "Hello world!"' |
| 37 | - role: SLAVE |
| 38 | build-on: |
| 39 | - NOT_BUILT |
| 40 | - ABORTED |
| 41 | - FAILURE |
| 42 | content: | |
| 43 | println "Hello world!" |
| 44 | println "Multi-line script" |
| 45 | |
| 46 | builders: |
| 47 | - role: MASTER |
| 48 | build-on: |
| 49 | - SUCCESS |
| 50 | - UNSTABLE |
| 51 | execute-on: axes |
| 52 | build-steps: |
| 53 | - shell: 'echo "Hello world!"' |
| 54 | - role: SLAVE |
| 55 | build-on: |
| 56 | - NOT_BUILT |
| 57 | - ABORTED |
| 58 | - FAILURE |
| 59 | execute-on: both |
| 60 | build-steps: |
| 61 | - shell: 'echo "Hello world!"' |
| 62 | - shell: 'echo "Goodbye world!"' |