aboutsummaryrefslogtreecommitdiff
path: root/tcwg-abe-tested.yaml
blob: 3c5cbdef51cc47f00c8f05e822892847d9221a08 (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
- 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
    parameters:
        - bool:
            name: no_tests_just_update_tested
            default: 'false'
            description: 'Do not run tests, and just update abe:tested'
    disabled: false
    node: tcwg-coordinator
    concurrent: true
    display-name: 'TCWG BBB Trigger ABE extended validation'
    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/remotes/gerrit/master
            basedir: abe
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
        - 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/remotes/gerrit/master
            basedir: jenkins-scripts
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
    triggers:
        # Every day at 1:01am
        - pollscm: '1 1 * * *'
    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
        - 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
        - shell: |
            #!/bin/bash
            
            set -ex

            git config --global user.name "TCWG Buildslave"
            git config --global user.email tcwg-buildslave@linaro.org
            git -C abe push gerrit $GIT_COMMIT:refs/heads/tested
            git -C jenkins-scripts push gerrit $GIT_COMMIT_1:refs/heads/tested