aboutsummaryrefslogtreecommitdiff
path: root/trigger-android-hikey-linaro-4.9-pmwg.yaml
blob: e997a4e69349461f838d13627370f59e1f283ed4 (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
- job:
    name: trigger-android-hikey-linaro-4.9-pmwg
    project-type: freestyle
    defaults: global
    properties:
        - authorization:
            anonymous:
                - job-read
                - job-extended-read
        - build-discarder:
            days-to-keep: 60
            num-to-keep: 60
    parameters:
        - string:
            name: KERNEL_BRANCH
            default: 'android-hikey-linaro-4.9-pmwg'
    disabled: false
    node: triggers
    display-name: 'Trigger for PMWG Android on HiKey'
    scm:
        - git:
            url: https://git.linaro.org/power/android.git
            refspec: +refs/heads/${KERNEL_BRANCH}:refs/remotes/origin/${KERNEL_BRANCH}
            name: origin
            branches:
                - origin/${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=12}'
    builders:
        - shell: |
            #!/bin/bash -e
            echo KERNEL_DESCRIBE=$(git describe --always) > lkft_parameters
            echo SRCREV_kernel=${GIT_COMMIT} >> lkft_parameters
            cat lkft_parameters
    publishers:
        - trigger-parameterized-builds:
            - project:
                - 'android-hikey-linaro-4.9-pmwg'
                - 'android-hikey960-linaro-4.9-pmwg'
              condition: SUCCESS
              property-file: lkft_parameters
        - email-ext:
            recipients: 'private-pmwg@lists.linaro.org, vishal.bhoj@linaro.org, fathi.boudra@linaro.org'
            content-type: text
            subject: '[Jenkins] Trigger: ${GIT_BRANCH} ${GIT_REVISION,length=12}'
            body: |
                Project: ${PROJECT_NAME}
                Build number: ${BUILD_NUMBER}
                Build status: ${BUILD_STATUS}
                Build URL: ${BUILD_URL}
                Console output: ${BUILD_URL}consoleText
                Git branch: ${GIT_BRANCH}
                Git commit: ${GIT_COMMIT}

                https://git.linaro.org/power/android.git/commit/?h=${KERNEL_BRANCH}&id=${GIT_COMMIT}
            attach-build-log: true
            always: true