blob: 617b04ab502d55dc76c36796643c367f3b442eb8 (
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
|
- job:
name: android-r-lcr-manifest
project-type: freestyle
defaults: global
properties:
- authorization:
anonymous:
- job-read
linaro:
- job-build
- job-cancel
- build-discarder:
days-to-keep: 60
num-to-keep: 60
parameters:
- string:
name: MANIFEST_URL
default: ''
description: "The pinned manifest URL of release candidate for which we want to generate manifest with tags for each repository"
- string:
name: RELEASE_TAG
default: ''
description: "Release tag for every untagged repository. It is generally of the form R-LCR-YY.MM"
- string:
name: GERRIT_USER
default: ''
description: "Gerrit username to be used for pushing the tags to the git repository"
disabled: false
node: docker-utopic-aosp
display-name: 'Job to generate R-LCR Manifest'
wrappers:
- timestamps
- timeout:
timeout: 500
- ssh-agent-credentials:
users:
- 'AOSP_COMMIT_BOT_KEY'
builders:
- linaro-publish-token
- shell: |
#!/bin/bash
git config --global user.email "ci_notify@linaro.org"
git config --global user.name "Linaro CI"
sudo apt-get update
sudo apt-get install -y python-requests
mkdir -p out
wget -q ${MANIFEST_URL} -O out/R-LCR.xml
sed -i "s/clone-depth=\"1\"//g" out/R-LCR.xml
wget -q https://git.linaro.org/ci/job/configs.git/plain/android-r-lcr-manifest/tag-manifest.sh
repo init -u https://android.googlesource.com/platform/manifest
cp -a out/R-LCR.xml .repo/manifest.xml
repo sync -j16
repo forall -c "bash ${PWD}/tag-manifest.sh"
sed -i "s/\"..\"/\"https:\/\/android.googlesource.com\/\"/g" out/R-LCR.xml
# 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
PUB_DEST=/android/${JOB_NAME}/${RELEASE_TAG}-${BUILD_NUMBER}
time python ${HOME}/bin/linaro-cp.py \
--api_version 3 \
--manifest \
--link-latest \
--split-job-owner \
--server ${PUBLISH_SERVER} \
out \
${PUB_DEST} \
--include "^[^/]+[._](img[^/]*|tar[^/]*|xml|sh|config)$"
echo "Build finished"
publishers:
- email:
recipients: 'vishal.bhoj@linaro.org fathi.boudra@linaro.org'
|