9cff4f295e
executeOn setting is available for PostBuildStep since 2.0 version of the Post Build Script plugin. For previous plugin's version executeOn should be set on the PostBuildScript layer. Change-Id: I6b7c9ccfbd0a2d610499074675835e6b5d96cb17 Task: 39028 Story: 2007411
63 lines
1.8 KiB
YAML
63 lines
1.8 KiB
YAML
publishers:
|
|
- postbuildscript:
|
|
mark-unstable-if-failed: true
|
|
generic-script:
|
|
- file-path: '/fakepath/generic'
|
|
role: MASTER
|
|
build-on:
|
|
- SUCCESS
|
|
- UNSTABLE
|
|
- file-path: '/fakepath/generic-two'
|
|
role: SLAVE
|
|
build-on:
|
|
- NOT_BUILT
|
|
- ABORTED
|
|
- FAILURE
|
|
execute-on: matrix
|
|
groovy-script:
|
|
- file-path: '/fakepath/groovy'
|
|
role: MASTER
|
|
build-on:
|
|
- SUCCESS
|
|
- UNSTABLE
|
|
execute-on: axes
|
|
- file-path: '/fakepath/groovy-too'
|
|
role: SLAVE
|
|
build-on:
|
|
- NOT_BUILT
|
|
- ABORTED
|
|
- FAILURE
|
|
groovy:
|
|
- role: MASTER
|
|
build-on:
|
|
- SUCCESS
|
|
- UNSTABLE
|
|
execute-on: matrix
|
|
content: 'println "Hello world!"'
|
|
- role: SLAVE
|
|
build-on:
|
|
- NOT_BUILT
|
|
- ABORTED
|
|
- FAILURE
|
|
content: |
|
|
println "Hello world!"
|
|
println "Multi-line script"
|
|
|
|
builders:
|
|
- role: MASTER
|
|
build-on:
|
|
- SUCCESS
|
|
- UNSTABLE
|
|
execute-on: axes
|
|
build-steps:
|
|
- shell: 'echo "Hello world!"'
|
|
- role: SLAVE
|
|
build-on:
|
|
- NOT_BUILT
|
|
- ABORTED
|
|
- FAILURE
|
|
execute-on: both
|
|
build-steps:
|
|
- shell: 'echo "Hello world!"'
|
|
- shell: 'echo "Goodbye world!"'
|