diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2019-03-28 13:57:12 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2019-03-28 14:08:19 +0000 |
commit | e2561477e3b532f13f367be0f0810ca251fb0719 (patch) | |
tree | 1b0b60d7389f2745317ea77f419698b2aad3787e /tcwg-reboot.yaml | |
parent | 797a204245303b41d8cef292100247e0f8277972 (diff) |
tcwg-reboot: New job
Change-Id: Ia663ab39d489a10c3712065a0d2bde9e8fa98135
Diffstat (limited to 'tcwg-reboot.yaml')
-rw-r--r-- | tcwg-reboot.yaml | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tcwg-reboot.yaml b/tcwg-reboot.yaml new file mode 100644 index 00000000..1a2a2d0c --- /dev/null +++ b/tcwg-reboot.yaml @@ -0,0 +1,61 @@ +- job: + name: tcwg-reboot + project-type: freestyle + defaults: global + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + linaro: + - job-build + - job-cancel + - build-discarder: + days-to-keep: 30 + num-to-keep: 100 + - throttle: + max-per-node: 1 + option: project + - build-blocker: + blocking-jobs: + - "tcwg.*" + block-level: 'NODE' + parameters: + - label: + name: node_list + default: tcwg-apm_64-build || tcwg-sq_64-build || tcwg-thx1-01 || tcwg-tk1_32-build + all-nodes: true + matching-label: 'allCases' + node-eligibility: 'ignore-offline' + description: 'Machines to run on' + - bool: + name: dry_run + default: 'false' + description: 'Whether to do a dry-run' + disabled: false + concurrent: true + display-name: 'TCWG CCC Reboot periodically' + triggers: + - timed: '@daily' + wrappers: + - timeout: + timeout: 600 + - timestamps + - build-name: + name: '#${BUILD_NUMBER}-${NODE_NAME}' + builders: + - shell: | + #!/bin/bash + + set -ex + + if $dry_run ; then + DRYRUN=echo + else + DRYRUN= + fi + $DRYRUN sudo reboot + publishers: + - email-ext: + recipients: tcwg-validation@linaro.org + aborted: true |