aboutsummaryrefslogtreecommitdiff
path: root/trigger-linux-next.yaml
blob: 7dad62c248ec4dcfd731117199e919e73d3efce2 (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
- job:
    name: trigger-linux-next
    project-type: freestyle
    defaults: global
    logrotate:
        daysToKeep: 30
        numToKeep: 30
    properties:
        - authorization:
            anonymous:
                - job-read
    disabled: false
    node: build
    display-name: 'Trigger for Linux Next (master)'
    scm:
        - git:
            url: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
            refspec: +refs/heads/master:refs/remotes/origin/master
            name: origin
            branches: 
                - refs/heads/master
            skip-tag: true
            shallow-clone: true
            wipe-workspace: false
    triggers:
        - pollscm: 'H/5 * * * *'
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
    builders:
        - shell: |
            #!/bin/bash

            trap cleanup_exit INT TERM EXIT

            cleanup_exit()
            {
              exit 0
            }

            echo -n "defconfig_list=" > defconfig.properties

            wget https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/arch/arm/configs -O configs
            cut -d'>' -f6 configs | cut -d'<' -f1 | grep defconfig | tr -s "\n" " " | sed 's/_defconfig//g' >> defconfig.properties

            wget http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/arch/arm64/configs -O configs
            cut -d'>' -f6 configs | cut -d'<' -f1 | grep defconfig | tr -s "\n" " " | sed 's/_defconfig//g' >> defconfig.properties
        - trigger-builds:
            - project: 'linux-next'
              property-file: defconfig.properties