blob: 8e4769632b0db1e1dde9c16e8553897bcb68559e (
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
|
- job:
name: 96boards-b2260
project-type: freestyle
defaults: global
logrotate:
daysToKeep: 30
numToKeep: 30
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
- job-workspace
linaro:
- job-build
- job-cancel
parameters:
- string:
name: ROOTFS
default: 'alip developer'
disabled: false
node: docker-jessie-amd64
display-name: '96boards - STiH410 B2260'
scm:
- git:
url: https://github.com/Linaro/rpk.git
refspec: +refs/heads/master:refs/remotes/origin/master
name: origin
branches:
- refs/heads/master
skip-tag: true
shallow-clone: true
wipe-workspace: false
wrappers:
- timestamps
- build-name:
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
- shell:
!include-raw: 96boards-b2260/builders.sh
- linaro-publish-token:
host: builds.96boards.org
- shell: |
#!/bin/bash
#
# Publish to the server
#
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 \
out snapshots/b2260/linaro/debian/${BUILD_NUMBER}
rm -rf out
- shell: |
#!/bin/bash -e
rm -rf configs
git clone --depth 1 http://git.linaro.org/ci/job/configs.git
VERSION=$(date +%Y%m%d)-${BUILD_NUMBER}
NFSROOTFS="b2260-stretch_developer_${VERSION}.img.gz"
sed -e "s|\${BUILD_NUMBER}|${BUILD_NUMBER}|" \
-e "s|\${NFSROOTFS}|${NFSROOTFS}|" \
-e "s|\${BUILD_URL}|${BUILD_URL}|" \
-e "s|\${GIT_COMMIT}|${GIT_COMMIT}|" \
< configs/96boards-b2260/lava-job-definitions/b2260/template.yaml \
> custom_lava_job_definition.yaml
cat << EOF > post_build_lava_parameters
DEVICE_TYPE=b2260
CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml
LAVA_SERVER=validation.linaro.org/RPC2/
EOF
- trigger-builds:
- project: 'post-build-lava'
property-file: post_build_lava_parameters
block: true
publishers:
- email:
recipients: 'fathi.boudra@linaro.org lee.jones@linaro.org patrice.chotard@linaro.org'
|