aboutsummaryrefslogtreecommitdiff
path: root/tcwg-update-snapshots_ref.yaml
blob: 80e1432b2eac4252c2455cac720750d01476e1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
- job:
    name: tcwg-update-snapshots_ref
    project-type: matrix
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-build
                - job-cancel
    parameters:
        - bool:
            name: regenerate
            default: false
            description: 'Regenerate snapshots'
    disabled: false
    node: tcwg-x86_64-ex40-build-01
    display-name: 'Update reference ABE snapshots on TCWG machines'
    triggers:
        - timed: '@weekly'
    scm:
        - git:
            url: https://git.linaro.org/toolchain/abe.git
            refspec: +refs/changes/*:refs/remotes/changes/*
            branches:
                - 40a1b0acc026c77ffe367520972f2d3abcbdbcd0
            skip-tag: true
            shallow-clone: true
            wipe-workspace: true
    axes:
        - axis:
            type: slave
            name: label
            values:
                - tcwg-x86_64-ex40-build-01
                - tcwg-x86_64-build-01
    execution-strategy:
        sequential: false
    wrappers:
        - timeout:
            timeout: 60
        - timestamps
        - ssh-agent-credentials:
            # tcwg-buildslave user id
            user: 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
        - build-name:
            name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
        - matrix-tie-parent:
            node: tcwg-x86_64-ex40-build-01
    builders:
        - shell: |
            #!/bin/bash

            if $regenerate; then
              opts=""
            else
              opts="-r"
            fi

            case "$label" in
              tcwg-x86_64-ex40-build-01)
                machines="$(for i in 1 2 4 6 7 8 9; do echo tcwg-ex40-0$i; done) r1-a7.aus-colo r1-a8.aus-colo"
                ;;
              tcwg-x86_64-build-01)
                machines="$(for i in `seq 1 6`; do echo build-0$i.tcwglab; done) $(for i in `seq 1 3`; do echo apm-0$i.tcwglab; done)"
                ;;
              *) echo "ERROR: Unknown host: $label"; exit 1 ;;
            esac

            ./scripts/update-snapshots-ref.sh -v $opts $machines