diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2020-03-04 23:21:39 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2020-03-05 00:10:12 +0800 |
commit | 2dbd310c8db0c4095453249d576ad31707164d7c (patch) | |
tree | 104f8ecd6e166a226783088ad75b2290b9ef061b /trigger-lkft-linaro-hikey.yaml | |
parent | d8df9bf296947114e2fd4724e557e78e4809c31f (diff) |
lkft: add hikey/hikey960 aosp master + 4.19/4.14 builds
Change-Id: I69858225bfdaf277c77ebce5044ab3c34186be8e
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'trigger-lkft-linaro-hikey.yaml')
-rw-r--r-- | trigger-lkft-linaro-hikey.yaml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/trigger-lkft-linaro-hikey.yaml b/trigger-lkft-linaro-hikey.yaml new file mode 100644 index 0000000000..7315588fc3 --- /dev/null +++ b/trigger-lkft-linaro-hikey.yaml @@ -0,0 +1,65 @@ +- job: + name: trigger-lkft-linaro-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: + - linaro-hikey: + url: https://android-git.linaro.org/git/kernel/hikey-linaro.git + - 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: + - linaro-hikey/android-hikey-linaro-4.14-lkft + - linaro-hikey/android-hikey-linaro-4.19-lkft + skip-tag: true + shallow-clone: false + wipe-workspace: false + triggers: + - pollscm: + cron: 'H/30 * * * *' + wrappers: + - timestamps + - build-name: + name: '#${BUILD_NUMBER}-${PROPFILE,file="properties.txt",property="KERNEL_DESCRIBE"}' + builders: + - shell: | + #!/bin/bash -ex + git clean -fdx + env + + KERNEL_DESCRIBE=$(git describe --always) + KERNEL_BRANCH=$(echo $GIT_BRANCH|sed s,linaro-hikey/,,) + + echo KERNEL_DESCRIBE=${KERNEL_DESCRIBE} > properties.txt + echo KERNEL_BRANCH=${KERNEL_BRANCH} >> properties.txt + + 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 + + # call api of android.linaro.org for lkft report check scheduling + if [ -n "${KERNEL_BRANCH}" ] && [ -n "${KERNEL_DESCRIBE}" ] && [ -n "${JOB_NAME}" ] && [ -n "${BUILD_NUMBER}" ]; then + curl -L https://android.linaro.org/lkft/newchanges/${KERNEL_BRANCH}/${KERNEL_DESCRIBE}/${JOB_NAME}/${BUILD_NUMBER} || true + curl -L http://213.146.155.43/lkft/newchanges/${KERNEL_BRANCH}/${KERNEL_DESCRIBE}/${JOB_NAME}/${BUILD_NUMBER} || true + fi + - trigger-builds: + - project: lkft-hikey-aosp-master-4.14-lkft + property-file: lkft-android-hikey-linaro-4.14-lkft.txt + - project: lkft-hikey-aosp-master-4.19-lkft + property-file: lkft-android-hikey-linaro-4.19-lkft.txt |