- job: name: tcwg-backup-files project-type: matrix defaults: global logrotate: daysToKeep: 30 numToKeep: 30 properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-build - job-cancel - throttle: max-per-node: 1 parameters: - string: name: paths default: '/home/tcwg-buildslave/logs*' description: 'Paths to backup' - string: name: backup_machine default: 'bkp-01.tcwglab:/home/tcwg-buildslave/$label/' description: 'Backup destination' - string: name: rsync_opts default: '-az' description: 'Options to give to rsync' - bool: name: dry_run default: 'false' description: 'Whether to do a dry-run' disabled: false node: tcwg-x86_64-cam concurrent: false display-name: 'TCWG CCC Backup files' triggers: - timed: '@daily' axes: - axis: type: slave name: label values: - tcwg-x86_64-dev-01 execution-strategy: sequential: false wrappers: - timeout: timeout: 600 - timestamps - ssh-agent-credentials: # tcwg-buildslave user id users: - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a' - build-name: name: '#${BUILD_NUMBER}' builders: - shell: | #!/bin/bash set -ex if ! $dry_run; then rsync $rsync_opts $paths $backup_machine else echo "rsync $rsync_opts $paths $backup_machine" fi publishers: - email: recipients: 'maxim.kuvyrkov@linaro.org christophe.lyon@linaro.org'