aboutsummaryrefslogtreecommitdiff
path: root/trigger-linux-stable-rc.yaml
blob: db1251654d7a89ee04f41fa9b19ddc2ada1721ad (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
- job:
    name: trigger-linux-stable-rc
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
        - build-discarder:
            days-to-keep: 30
            num-to-keep: 30
    disabled: false
    node: triggers
    display-name: 'Trigger for Linux Stable RC'
    scm:
        - git:
            remotes:
              - linux-stable-rc:
                  url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
              - linux-stable:
                  url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
            branches:
              - linux-stable-rc/linux-4.4.y
              - linux-stable-rc/linux-4.9.y
              - linux-stable-rc/linux-4.14.y
              - linux-stable-rc/linux-4.19.y
              - linux-stable-rc/linux-5.4.y
              - linux-stable-rc/linux-5.5.y
              - linux-stable-rc/linux-5.6.y
              - linux-stable-rc/linux-5.7.y
              - linux-stable-rc/linux-5.8.y
              - linux-stable-rc/linux-5.9.y
              - linux-stable-rc/linux-5.10.y
              - linux-stable-rc/linux-5.11.y
              - linux-stable-rc/linux-5.12.y
              - linux-stable-rc/linux-5.13.y
              - linux-stable-rc/linux-5.14.y
              - linux-stable-rc/linux-5.15.y
              - linux-stable-rc/linux-5.16.y
            name: linux
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
    triggers:
        - pollscm:
            cron: 'H/5 * * * *'
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${GIT_BRANCH#linux-stable-rc/}-${GIT_REVISION,length=8}'

    builders:
        - shell: |
            #!/bin/bash -ex
            git clean -fdx
            env

            MAKE_KERNELVERSION=$(make kernelversion)
            KERNEL_BRANCH=${GIT_BRANCH#linux-stable-rc/}
            KERNEL_DESCRIBE=$(git describe --always --abbrev=12)

            params=lkft-${KERNEL_BRANCH}.txt
            echo KERNEL_DESCRIBE=${KERNEL_DESCRIBE} >> $params
            echo SRCREV_kernel=${GIT_COMMIT} >> $params
            echo MAKE_KERNELVERSION=${MAKE_KERNELVERSION} >> $params
            echo KERNEL_BRANCH=${KERNEL_BRANCH} >> $params
            cat $params

        - trigger-builds: 
            - project: linaro-hikey-stable-rc-4.4-merge-and-tag
              property-file: lkft-linux-4.4.y.txt
            - project: openembedded-lkft-linux-stable-rc-4.4
              property-file: lkft-linux-4.4.y.txt
            - project: openembedded-lkft-linux-stable-rc-4.9
              property-file: lkft-linux-4.9.y.txt
            - project: openembedded-lkft-linux-stable-rc-4.14
              property-file: lkft-linux-4.14.y.txt
            - project: openembedded-lkft-linux-stable-rc-4.19
              property-file: lkft-linux-4.19.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.4
              property-file: lkft-linux-5.4.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.5
              property-file: lkft-linux-5.5.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.6
              property-file: lkft-linux-5.6.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.7
              property-file: lkft-linux-5.7.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.8
              property-file: lkft-linux-5.8.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.9
              property-file: lkft-linux-5.9.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.10
              property-file: lkft-linux-5.10.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.11
              property-file: lkft-linux-5.11.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.12
              property-file: lkft-linux-5.12.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.13
              property-file: lkft-linux-5.13.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.14
              property-file: lkft-linux-5.14.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.15
              property-file: lkft-linux-5.15.y.txt
            - project: openembedded-lkft-linux-stable-rc-5.16
              property-file: lkft-linux-5.16.y.txt