blob: 9c890be7e8ad288b23282ac80df4ad0237f8f4b6 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
- job:
name: linaro-hikey-stable-rc-4.4-merge-and-tag
project-type: freestyle
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
- build-discarder:
days-to-keep: 30
num-to-keep: 30
disabled: false
node: master
display-name: 'Linaro HiKey Stable RC 4.4 Merge-and-Tag'
scm:
- git:
remotes:
- linux-stable-rc-4.4:
url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
refspec: +refs/heads/linux-4.4.y:refs/remotes/linux-stable-rc-4.4/linux-4.4.y
- sumit-lts:
url: https://git.linaro.org/people/sumit.semwal/linux-lts.git
refspec: +refs/heads/lts-4.4.y-hikey:refs/remotes/sumit-lts/lts-4.4.y-hikey
- arm64-stable-rc-4.4:
url: ssh://git@git.linaro.org/lkft/arm64-stable-rc.git
refspec: +refs/heads/4.4.y-rc-hikey:refs/remotes/arm64-stable-rc-4.4/4.4.y-rc-hikey
credentials-id: '768c1ba1-6052-4b97-a531-7e4fabda6979'
branches:
- linux-stable-rc-4.4/linux-4.4.y
git-config-name: 'Linaro CI'
git-config-email: 'ci_notify@linaro.org'
skip-tag: true
shallow-clone: false
wipe-workspace: false
wrappers:
- timestamps
- ssh-agent-credentials:
users:
- '768c1ba1-6052-4b97-a531-7e4fabda6979'
- build-name:
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
- shell: |
#!/bin/bash
set -e
git config --global user.name "Linaro CI"
git config --global user.email "ci_notify@linaro.org"
# Find out the kernel version and bail out if it is not a RC
git checkout -B linux-4.4.y linux-stable-rc-4.4/linux-4.4.y
kernel_version=$(make kernelversion)
case "${kernel_version}" in
4.4.*-rc*)
echo "Kernel version: ${kernel_version}"
;;
*)
echo "Kernel version ${kernel_version} is not a 4.4.y RC."
exit 0
;;
esac
# Merge HiKey rebased branch into stable 4.4.y
git merge --no-edit sumit-lts/lts-4.4.y-hikey
# Apply tag
tag=${kernel_version}-hikey-$(date +"%Y%m%d")
git tag ${tag}
# Push tag
git push arm64-stable-rc-4.4 ${tag}
publishers:
- trigger-parameterized-builds:
- project:
- 'trigger-openembedded-lkft-linaro-hikey-stable-rc-4.4'
condition: SUCCESS
trigger-with-no-params: true
- email-ext:
recipients: 'sumit.semwal@linaro.org, fathi.boudra@linaro.org, daniel.diaz@linaro.org'
body: |
Project: ${PROJECT_NAME}
Build number: ${BUILD_NUMBER}
Build status: ${BUILD_STATUS}
Build URL: ${BUILD_URL}
always: true
|