aboutsummaryrefslogtreecommitdiff
path: root/trigger-lkft-linux-clang-stable.yaml
blob: 5e065e468581f6f6fa8b924ac7aa6c955bb6a980 (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
- job:
    name: trigger-lkft-linux-clang-stable
    project-type: freestyle
    defaults: global
    logrotate:
        daysToKeep: 60
        numToKeep: 300
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
    parameters:
        - string:
            name: KERNEL_BRANCH
            default: 'linux-4.17.y'
    disabled: true
    node: master
    display-name: 'Trigger for LKFT - Linux Kernel with Clang 4.17'
    scm:
        - git:
            url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
            refspec: +refs/heads/${KERNEL_BRANCH}:refs/remotes/linux-stable/${KERNEL_BRANCH}
            name: linux-stable
            branches:
                - linux-stable/${KERNEL_BRANCH}
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
    triggers:
        - pollscm: 'H/5 * * * *'
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
    builders:
        - shell: |
            #!/bin/bash -e
            git clean -fdx
            echo KERNEL_GITREF=linux-stable/${KERNEL_BRANCH} > lkft_parameters
            echo KERNEL_DESCRIBE=$(git describe --always) >> lkft_parameters
            echo GIT_COMMIT=${GIT_COMMIT} >> lkft_parameters
            echo MAKE_KERNELVERSION=$(make kernelversion) >> lkft_parameters
            cat lkft_parameters
        - trigger-builds:
            - project:
                - 'lkft-linux-clang'
              property-file: lkft_parameters
              block: true