-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathjava_tools-rc.yml
69 lines (64 loc) · 2.19 KB
/
java_tools-rc.yml
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
---
steps:
- input: "Release information"
fields:
- text: "Version (e.g. 13.1)"
key: "version"
required: true
- text: "RC (e.g. 1, 2)"
key: "rc"
required: true
default: "1"
hint: "For final releases, enter the latest RC to be released."
- text: "Commit hash"
key: "commit"
required: true
- select: "Final release"
key: "final"
required: true
default: "false"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
- wait
- label: "Create release"
agents:
- "queue=default"
plugins:
docker#v3.8.0:
always-pull: true
environment:
- ANDROID_HOME
- ANDROID_NDK_HOME
- BUILDKITE_ARTIFACT_UPLOAD_DESTINATION
image: gcr.io/bazel-public/ubuntu2004-java11
network: host
privileged: true
propagate-environment: true
propagate-uid-gid: true
shell: ["/bin/bash", "-e", "-c"]
volumes:
- "/etc/group:/etc/group:ro"
- "/etc/passwd:/etc/passwd:ro"
- "/etc/shadow:/etc/shadow:ro"
- "/opt/android-ndk-r15c:/opt/android-ndk-r15c:ro"
- "/opt/android-sdk-linux:/opt/android-sdk-linux:ro"
- "/var/lib/buildkite-agent:/var/lib/buildkite-agent"
- "/var/lib/gitmirrors:/var/lib/gitmirrors:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
command: |
echo "+++ Identifying required variables"
version=$(buildkite-agent meta-data get "version")
rc=$(buildkite-agent meta-data get "rc")
final=$(buildkite-agent meta-data get "final")
commit_hash=$(buildkite-agent meta-data get "commit")
echo "commit_hash = \"\$commit_hash\""
echo "version = \"\$version\""
echo "rc = \"\$rc\""
echo "final = \"\$final\""
echo "+++ Installing required packages"
sudo apt -y update && sudo apt -y install jq
echo "+++ Running create_java_tools_release.sh"
src/create_java_tools_release.sh --commit_hash \${commit_hash} --java_tools_version \${version} --rc \${rc} --release \${final}