aboutsummaryrefslogtreecommitdiff
path: root/tcwg-abe-tested.yaml
blob: 2d941816066851a0e12c9178be4a194e27a85a16 (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
- scm:
    name: abe
    scm:
        - git:
            url: ssh://tcwg-buildslave@review.linaro.org:29418/toolchain/abe.git
            # tcwg-buildslave user id
            credentials-id: 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
            name: gerrit
            branches:
                - refs/heads/master
            basedir: abe
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
            clean:
                before: true
- scm:
    name: jenkins-scripts
    scm:
        - git:
            url: ssh://tcwg-buildslave@review.linaro.org:29418/toolchain/jenkins-scripts.git
            # tcwg-buildslave user id
            credentials-id: 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
            name: gerrit
            branches:
                - refs/heads/master
            basedir: jenkins-scripts
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
            clean:
                before: true
- scm:
    name: dockerfiles
    scm:
        - git:
            url: https://git-us.linaro.org/ci/dockerfiles.git
            name: origin
            branches:
                - refs/heads/master
            basedir: dockerfiles
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
            clean:
                before: true
- job:
    name: tcwg-abe-tested
    project-type: multijob
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
            linaro:
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 30
        - build-blocker:
            use-build-blocker: true
            blocking-jobs:
              - "ci-dockerfiles-deployment"
            queue-scanning: 'ALL'
        - throttle:
            max-total: 1
            option: project
    parameters:
        - bool:
            name: no_tests_just_update_tested
            default: 'false'
            description: 'Do not run tests, and just update abe:tested'
        - string:
            name: distro
            default: 'xenial-tcwg-tested'
            description: 'Distro image to use'
    disabled: false
    node: tcwg-coordinator
    concurrent: true
    display-name: 'TCWG BBB Update tested branches (ABE, jenkins-scripts) after extended validation'
    scm:
        - abe
        - jenkins-scripts
        - dockerfiles
    triggers:
        # Every 30min
        - pollscm:
            cron: '30 * * * *'
    wrappers:
        - timeout:
            timeout: 600
        - timestamps
        - ssh-agent-credentials:
            # tcwg-buildslave user id
            users:
                - 'e0958a95-204f-4c14-a66c-5e2be6c5d50a'
    builders:
        - shell: |
            #!/bin/bash
            # Print out environment for debug purposes.
            env | grep "^GIT"
        - conditional-step:
            condition-kind: strings-match
            condition-string1: '${ENV,var="no_tests_just_update_tested"}'
            condition-string2: 'false'
            steps:
              - multijob:
                  name: 'ABE extended tests'
                  condition: SUCCESSFUL
                  projects:
                    - name: tcwg-abe-extended
                      predefined-parameters: |
                        abe_branch=$GIT_COMMIT
                        scripts_branch=$GIT_COMMIT_1
                        distro=trusty
                    - name: tcwg-regression-detection
                      predefined-parameters: |
                        abe_branch=$GIT_COMMIT
                        scripts_branch=$GIT_COMMIT_1
                        distro=trusty
                        ref_abe_rev=tested
                        ref_scripts_branch=tested
                        ref_distro=default
        - shell: |
            #!/bin/bash

            set -ex
            ./jenkins-scripts/docker-run.sh --distro $distro -- ./jenkins-scripts/tcwg-update-tested.sh --GIT_COMMIT $GIT_COMMIT --GIT_COMMIT_1 $GIT_COMMIT_1 --GIT_COMMIT_2 $GIT_COMMIT_2 --verbose true