aboutsummaryrefslogtreecommitdiff
path: root/trigger-lt-qcom-linux.yaml
blob: b2e50e098ae65db2ff5fd9bdc9c604b12e66d4df (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
- project:
    name: trigger-lt-qcom-linux
    jobs:
        - 'trigger-lt-qcom-linux-{flavor}':
            flavor: 'mainline'
            kernelci: 'mainline'
        - 'trigger-lt-qcom-linux-{flavor}':
            flavor: 'integration'
            kernelci: 'qcom-lt'
- job-template:
    name: 'trigger-lt-qcom-linux-{flavor}'
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
                - job-workspace
            linaro-landing-team-qualcomm-personnel:
                - job-read
                - job-extended-read
                - job-build
                - job-cancel
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 30
    disabled: false
    node: triggers
    display-name: 'Trigger for LT Qualcomm Linux build: {flavor}'
    triggers:
        - timed: 'H/5 * * * *'
    wrappers:
        - timeout:
            timeout: 5
        - timestamps
        - credentials-binding:
            - text:
                credential-id: QCOMLT_KERNELCI_TOKEN
                variable: QCOMLT_KERNELCI_TOKEN
    builders:
        - shell: |
            #!/bin/bash
            set -ex

            rm -rf configs
            git clone --depth 1 http://git.linaro.org/ci/job/configs.git

            set +ex
            ./configs/lt-qcom-linux-test/kernelci.py ${{QCOMLT_KERNELCI_TOKEN}} {kernelci} arm64 defconfig lt_qcom_parameters
            ret=$?
            if [ $ret -ne 0 ]; then
                echo "warning: no new kernel ci build available"
                exit 1
            fi
        - inject:
            properties-file: lt_qcom_parameters
    publishers:
        - logparser:
            parse-rules: '/var/jenkins_home/userContent/android.parse'
            unstable-on-warning: true
            fail-on-error: false
        - trigger-parameterized-builds:
            - project: lt-qcom-linux-{flavor}
              condition: SUCCESS
              property-file: lt_qcom_parameters