-
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathtools-jdk21.yaml
121 lines (116 loc) · 3.82 KB
/
tools-jdk21.yaml
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
---
name: Bump JDK21 version (Jenkins tools) on all controllers
scms:
default:
kind: github
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
owner: "{{ .github.owner }}"
repository: "{{ .github.repository }}"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
branch: "{{ .github.branch }}"
sources:
lastVersion:
kind: githubrelease
spec:
owner: "adoptium"
repository: "temurin21-binaries"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: regex
# jdk-21.0.3+9(https://github.com/adoptium/temurin21-binaries/releases/tag/jdk-21.0.3%2B9) is OK
pattern: "^jdk-21.(\\d*).(\\d*).(\\d*)+(\\d*)$"
linuxAmd64DownloadUrl:
kind: shell
dependson:
- lastVersion
spec:
# Print an empty string if failing to avoid errors on updatecli exit. Conditions takes care of the graceful exit
command: bash -c './updatecli/scripts/jdk-download-url.sh "{{ source `lastVersion` }}" "linux" "x64" || echo ""'
linuxArm64DownloadUrl:
kind: shell
dependson:
- lastVersion
spec:
# Print an empty string if failing to avoid errors on updatecli exit. Conditions takes care of the graceful exit
command: bash -c './updatecli/scripts/jdk-download-url.sh "{{ source `lastVersion` }}" "linux" "aarch64" || echo ""'
windowsAmd64DownloadUrl:
kind: shell
dependson:
- lastVersion
spec:
# Print an empty string if failing to avoid errors on updatecli exit. Conditions takes care of the graceful exit
command: bash -c './updatecli/scripts/jdk-download-url.sh "{{ source `lastVersion` }}" "windows" "x64" || echo ""'
conditions:
checkLinuxAmd64:
disablesourceinput: true
kind: shell
spec:
command: bash ./updatecli/scripts/jdk-download-url.sh "{{ source `lastVersion` }}" "linux" "x64"
checkLinuxArm64:
disablesourceinput: true
kind: shell
spec:
command: bash ./updatecli/scripts/jdk-download-url.sh "{{ source `lastVersion` }}" "linux" "aarch64"
checkWindowsAmd64:
disablesourceinput: true
kind: shell
spec:
command: bash ./updatecli/scripts/jdk-download-url.sh "{{ source `lastVersion` }}" "windows" "x64"
targets:
setJDK21Subdir:
name: "Bump JDK21 tool subdir"
sourceid: lastVersion
kind: file
spec:
file: config/jenkins_infra.ci.jenkins.io.yaml
matchpattern: >
subdir: "jdk-21(.*)"
replacepattern: >
subdir: "{{ source `lastVersion` }}"
scmid: default
setJDK21LinuxAmd64Url:
name: "Bump JDK21 tool download URL for Linux amd64"
disablesourceinput: true
kind: file
spec:
file: config/jenkins_infra.ci.jenkins.io.yaml
matchpattern: >
url: "(.*)jdk-21(.*)x64_linux(.*)"
replacepattern: >
url: "{{ source `linuxAmd64DownloadUrl` }}"
scmid: default
setJDK21WindowsAmd64Url:
name: "Bump JDK21 tool download URL for Windows amd64"
disablesourceinput: true
kind: file
spec:
file: config/jenkins_infra.ci.jenkins.io.yaml
matchpattern: >
url: "(.*)jdk-21(.*)x64_windows(.*)"
replacepattern: >
url: "{{ source `windowsAmd64DownloadUrl` }}"
scmid: default
setJDK21LinuxArm64Url:
name: "Bump JDK21 tool download URL for Linux arm64"
disablesourceinput: true
kind: file
spec:
file: config/jenkins_infra.ci.jenkins.io.yaml
matchpattern: >
url: "(.*)jdk-21(.*)aarch64_linux(.*)"
replacepattern: >
url: "{{ source `linuxArm64DownloadUrl` }}"
scmid: default
actions:
default:
kind: github/pullrequest
scmid: default
title: Bump JDK21 version (Jenkins tools) on all controllers to {{ source "lastVersion" }}
spec:
labels:
- dependencies
- jdk21