forked from jenkinsci/docker-inbound-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(windows) track git version using updatecli and manages all wind…
…ows patches (jenkinsci#370) * chore(windows) track git version using updatecli and manages all windows patches Signed-off-by: Damien Duportal <[email protected]> * Apply suggestions from code review Co-authored-by: Alex Earl <[email protected]> --------- Signed-off-by: Damien Duportal <[email protected]> Co-authored-by: Alex Earl <[email protected]>
- Loading branch information
Showing
5 changed files
with
163 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
--- | ||
name: Bump Git version on Windows | ||
|
||
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 | ||
name: Get the latest Git version | ||
spec: | ||
owner: "git-for-windows" | ||
repository: "git" | ||
token: "{{ requiredEnv .github.token }}" | ||
username: "{{ .github.username }}" | ||
versionfilter: | ||
kind: regex | ||
## Latest stable v{x.y.z}.windows.<patch> | ||
pattern: 'v(\d*)\.(\d*)\.(\d*)\.windows\.(\d*)$' | ||
transformers: | ||
- trimprefix: "v" | ||
|
||
targets: | ||
############# JDK11 Nanoserver 18.09 | ||
setGitVersionJDK11WindowsNanoserver1809: | ||
name: Update the Git Windows version for JDK11 Windows Nanoserver 1809 | ||
transformers: | ||
- findsubmatch: | ||
pattern: '(.*).windows\.(\d*)$' | ||
captureindex: 1 | ||
kind: dockerfile | ||
spec: | ||
file: 11/windows/nanoserver-1809/Dockerfile | ||
instruction: | ||
keyword: ARG | ||
matcher: GIT_VERSION | ||
scmid: default | ||
setGitPackagePatchJDK11WindowsNanoserver1809: | ||
name: Update the Git Package Windows patch for JDK11 Windows Nanoserver 1809 | ||
transformers: | ||
- findsubmatch: | ||
pattern: '(.*).windows\.(\d*)$' | ||
captureindex: 2 | ||
kind: dockerfile | ||
spec: | ||
file: 11/windows/nanoserver-1809/Dockerfile | ||
instruction: | ||
keyword: ARG | ||
matcher: GIT_PATCH_VERSION | ||
scmid: default | ||
############# JDK11 Windows Server Core LTSC2019 | ||
setGitVersionJDK11WindowsServer2019: | ||
name: Update the Git Windows version for JDK11 Windows Server Core LTSC2019 | ||
transformers: | ||
- findsubmatch: | ||
pattern: '(.*).windows\.(\d*)$' | ||
captureindex: 1 | ||
kind: dockerfile | ||
spec: | ||
file: 11/windows/windowsservercore-ltsc2019/Dockerfile | ||
instruction: | ||
keyword: ARG | ||
matcher: GIT_VERSION | ||
scmid: default | ||
setGitPackagePatchJDK11WindowsServer2019: | ||
name: Update the Git Package Windows patch for Windows Server Core LTSC2019 | ||
transformers: | ||
- findsubmatch: | ||
pattern: '(.*).windows\.(\d*)$' | ||
captureindex: 2 | ||
kind: dockerfile | ||
spec: | ||
file: 11/windows/windowsservercore-ltsc2019/Dockerfile | ||
instruction: | ||
keyword: ARG | ||
matcher: GIT_PATCH_VERSION | ||
scmid: default | ||
############# JDK17 Nanoserver 18.09 | ||
setGitVersionJDK17WindowsNanoserver1809: | ||
name: Update the Git Windows version for JDK17 Windows Nanoserver 1809 | ||
transformers: | ||
- findsubmatch: | ||
pattern: '(.*).windows\.(\d*)$' | ||
captureindex: 1 | ||
kind: dockerfile | ||
spec: | ||
file: 17/windows/nanoserver-1809/Dockerfile | ||
instruction: | ||
keyword: ARG | ||
matcher: GIT_VERSION | ||
scmid: default | ||
setGitPackagePatchJDK17WindowsNanoserver1809: | ||
name: Update the Git Package Windows patch for JDK17 Windows Nanoserver 1809 | ||
transformers: | ||
- findsubmatch: | ||
pattern: '(.*).windows\.(\d*)$' | ||
captureindex: 2 | ||
kind: dockerfile | ||
spec: | ||
file: 17/windows/nanoserver-1809/Dockerfile | ||
instruction: | ||
keyword: ARG | ||
matcher: GIT_PATCH_VERSION | ||
scmid: default | ||
############# JDK17 Windows Server Core LTSC2019 | ||
setGitVersionJDK17WindowsServer2019: | ||
name: Update the Git Windows version for JDK17 Windows Server Core LTSC2019 | ||
transformers: | ||
- findsubmatch: | ||
pattern: '(.*).windows\.(\d*)$' | ||
captureindex: 1 | ||
kind: dockerfile | ||
spec: | ||
file: 17/windows/windowsservercore-ltsc2019/Dockerfile | ||
instruction: | ||
keyword: ARG | ||
matcher: GIT_VERSION | ||
scmid: default | ||
setGitPackagePatchJDK17WindowsServer2019: | ||
name: Update the Git Package Windows patch for JDK17 Windows Server Core LTSC2019 | ||
transformers: | ||
- findsubmatch: | ||
pattern: '(.*).windows\.(\d*)$' | ||
captureindex: 2 | ||
kind: dockerfile | ||
spec: | ||
file: 17/windows/windowsservercore-ltsc2019/Dockerfile | ||
instruction: | ||
keyword: ARG | ||
matcher: GIT_PATCH_VERSION | ||
scmid: default | ||
|
||
actions: | ||
default: | ||
kind: github/pullrequest | ||
title: Bump Git version on Windows to {{ source "lastVersion" }} | ||
scmid: default | ||
spec: | ||
labels: | ||
- enhancement | ||
- git | ||
- windows |