blob: 506fa57bd769b3954cd992e5168a8289740d1a94 (
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
- scm:
name: poky
scm:
- git:
url: https://git.yoctoproject.org/git/poky
refspec: +refs/heads/${BRANCH}:refs/remotes/origin/${BRANCH}
name: origin
branches:
- refs/heads/${BRANCH}
shallow-clone: true
wipe-workspace: false
- scm:
name: meta-xilinx
scm:
- git:
url: https://github.com/Xilinx/meta-xilinx.git
refspec: +refs/heads/${BRANCH}:refs/remotes/origin/${BRANCH}
name: origin
branches:
- refs/heads/${BRANCH}
basedir: meta-xilinx
shallow-clone: true
wipe-workspace: false
- job:
name: lite-openembedded-zcu102-rocko
project-type: freestyle
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
linaro:
- job-read
- job-extended-read
- job-build
- job-cancel
- build-discarder:
days-to-keep: 30
num-to-keep: 30
artifact-num-to-keep: 1
parameters:
- string:
name: MACHINE
default: 'zcu102-zynqmp'
- string:
name: DISTRO
default: 'poky'
- string:
name: BRANCH
default: 'rocko'
- string:
name: BASE_URL
default: 'http://snapshots.linaro.org/'
- string:
name: PUB_DEST
default: 'openembedded/lite/${BRANCH}/${MACHINE}/${BUILD_NUMBER}/${DISTRO}'
disabled: false
node: docker-stretch-amd64
display-name: 'LITE - OpenEmbedded for Xilinx ZCU102 (rocko)'
scm:
- poky
- meta-xilinx
wrappers:
- timestamps
- build-name:
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
- shell: |
#!/bin/bash
set -e
if ! sudo DEBIAN_FRONTEND=noninteractive apt -q=2 update; then
echo "INFO: apt update error - try again in a moment"
sleep 15
sudo DEBIAN_FRONTEND=noninteractive apt -q=2 update || true
fi
pkg_list="chrpath cpio diffstat gawk libmath-prime-util-perl libsdl1.2-dev libssl-dev python-requests texinfo vim-tiny whiptail"
if ! sudo DEBIAN_FRONTEND=noninteractive apt -q=2 install -y ${pkg_list}; then
echo "INFO: apt install error - try again in a moment"
sleep 15
sudo DEBIAN_FRONTEND=noninteractive apt -q=2 install -y ${pkg_list}
fi
set -ex
# link to shared downloads on persistent disk
# our builds config is expecting downloads and sstate-cache, here.
mkdir -p ${HOME}/srv/oe/downloads ${HOME}/srv/oe/sstate-cache-${DISTRO}-${BRANCH}
mkdir -p build
ln -s ${HOME}/srv/oe/downloads build/downloads
ln -s ${HOME}/srv/oe/sstate-cache-${DISTRO}-${BRANCH} build/sstate-cache
# Build
source oe-init-build-env
echo "SRCREV_pn-qemu-xilinx = \"a957a906bfdbc5c1626eedf5ffff8c8fa69bad1c\"" >> conf/local.conf
bitbake-layers add-layer ${WORKSPACE}/meta-xilinx/meta-xilinx-bsp
bitbake core-image-minimal
# Prepare files to publish
DEPLOY_DIR_IMAGE=$(bitbake -e | grep "^DEPLOY_DIR_IMAGE="| cut -d'=' -f2 | tr -d '"')
rm -f ${DEPLOY_DIR_IMAGE}/*.txt
find ${DEPLOY_DIR_IMAGE} -type l -delete
cat << EOF > ${WORKSPACE}/post_build_lava_parameters
DEPLOY_DIR_IMAGE=${DEPLOY_DIR_IMAGE}
EOF
- inject:
properties-file: post_build_lava_parameters
- linaro-publish-token
- shell: |
#!/bin/bash
set -e
# Publish
test -d ${HOME}/bin || mkdir ${HOME}/bin
wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
time python ${HOME}/bin/linaro-cp.py \
--server ${PUBLISH_SERVER} \
--link-latest \
${DEPLOY_DIR_IMAGE}/ ${PUB_DEST}
publishers:
- email:
recipients: 'fathi.boudra@linaro.org jiaying.liang@linaro.org'
|