aboutsummaryrefslogtreecommitdiff
path: root/trigger-lkft-aosp-hikey.yaml
blob: cc2cab07aa7f3e1331560005f31e31fc946b0c67 (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
- job:
    name: trigger-lkft-aosp-hikey
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
        - build-discarder:
            days-to-keep: 180
            num-to-keep: 150
    disabled: false
    node: master
    display-name: 'Trigger for changes on aosp hikey kernel'
    scm:
        - git:
            remotes:
                - aosp-hikey:
                    url: https://android.googlesource.com/kernel/hikey-linaro
                - linux-stable:
                    url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
                    refspec: +refs/heads/linux-4.14.y:refs/remotes/linux-stable/linux-4.14.y +refs/heads/linux-4.19.y:refs/remotes/linux-stable/linux-4.19.y
            branches:
              - aosp-hikey/mirror-android-4.14-stable
              - aosp-hikey/mirror-android-4.19
              - aosp-hikey/mirror-android-4.19-stable
            skip-tag: true
            shallow-clone: false
            wipe-workspace: false
    triggers:
        - pollscm:
            cron: 'H H/3 * * *'
    wrappers:
        - timestamps
        - build-name:
            name: '#${BUILD_NUMBER}-${PROPFILE,file="properties.txt",property="KERNEL_DESCRIBE"}-${GIT_BRANCH#aosp-hikey/}'
    builders:
        - shell: |
            #!/bin/bash -ex
            git clean -fdx
            env

            KERNEL_DESCRIBE=$(git describe --always)
            KERNEL_BRANCH=$(echo $GIT_BRANCH|sed s,aosp-hikey/,,)

            echo KERNEL_DESCRIBE=${KERNEL_DESCRIBE} > properties.txt
            echo KERNEL_BRANCH=${KERNEL_BRANCH} >> properties.txt

            params=lkft-parameters.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: lkft-hikey-merge-mirrors
              property-file: lkft-parameters.txt