Skip to content

Commit

Permalink
Merge pull request #444 from lemeurherve/cleanup-updatecli-manifest
Browse files Browse the repository at this point in the history
cleanup(updatecli): deduplicate manifest targets
  • Loading branch information
dduportal committed Jul 1, 2023
2 parents 8fdc902 + d76970d commit 9210d2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ sources:
- trimprefix: "v"

targets:
############# JDK11 Nanoserver 18.09
setGitVersionJDK11WindowsNanoserver1809:
name: Update the Git Windows version for JDK11 Windows Nanoserver 1809
############# Nanoserver 18.09
setGitVersionWindowsNanoserver1809:
name: Update the Git Windows version for Windows Nanoserver 1809
transformers:
- findsubmatch:
pattern: '(.*).windows\.(\d*)$'
Expand All @@ -44,8 +44,8 @@ targets:
keyword: ARG
matcher: GIT_VERSION
scmid: default
setGitPackagePatchJDK11WindowsNanoserver1809:
name: Update the Git Package Windows patch for JDK11 Windows Nanoserver 1809
setGitPackagePatchWindowsNanoserver1809:
name: Update the Git Package Windows patch for Windows Nanoserver 1809
transformers:
- findsubmatch:
pattern: '(.*).windows\.(\d*)$'
Expand All @@ -57,9 +57,9 @@ targets:
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
############# Windows Server Core LTSC2019
setGitVersionWindowsServer2019:
name: Update the Git Windows version for Windows Server Core LTSC2019
transformers:
- findsubmatch:
pattern: '(.*).windows\.(\d*)$'
Expand All @@ -71,7 +71,7 @@ targets:
keyword: ARG
matcher: GIT_VERSION
scmid: default
setGitPackagePatchJDK11WindowsServer2019:
setGitPackagePatchWindowsServer2019:
name: Update the Git Package Windows patch for Windows Server Core LTSC2019
transformers:
- findsubmatch:
Expand All @@ -84,60 +84,6 @@ targets:
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: 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: 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: 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: windows/windowsservercore-ltsc2019/Dockerfile
instruction:
keyword: ARG
matcher: GIT_PATCH_VERSION
scmid: default

actions:
default:
Expand Down
32 changes: 7 additions & 25 deletions updatecli/updatecli.d/remoting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ conditions:

targets:
setAlpineDockerImage:
name: Bump the Jenkins remoting version on JDK11 Alpine
name: Bump the Jenkins remoting version on Alpine
kind: dockerfile
spec:
file: alpine/Dockerfile
Expand All @@ -44,7 +44,7 @@ targets:
matcher: VERSION
scmid: default
setArchlinuxDockerImage:
name: Bump the Jenkins remoting version on JDK11 Archlinux
name: Bump the Jenkins remoting version on Archlinux
kind: dockerfile
spec:
file: archlinux/Dockerfile
Expand All @@ -53,43 +53,25 @@ targets:
matcher: VERSION
scmid: default
setDebianDockerImage:
name: Bump the Jenkins remoting version on JDK11 Debian Bullseye
name: Bump the Jenkins remoting version on Debian Bullseye
kind: dockerfile
spec:
file: debian/Dockerfile
instruction:
keyword: ARG
matcher: VERSION
scmid: default
setJdk11WindowsNanoserver1809DockerImage:
name: Bump the Jenkins remoting version on JDK11 Windows Nanoserver 1809
setWindowsNanoserver1809DockerImage:
name: Bump the Jenkins remoting version on Windows Nanoserver 1809
kind: dockerfile
spec:
file: windows/nanoserver-1809/Dockerfile
instruction:
keyword: ARG
matcher: VERSION
scmid: default
setJdk11WindowsServer2019DockerImage:
name: Bump the Jenkins remoting version on JDK11 Windows Server 2019
kind: dockerfile
spec:
file: windows/windowsservercore-ltsc2019/Dockerfile
instruction:
keyword: ARG
matcher: VERSION
scmid: default
setJdk17WindowsNanoserver1809DockerImage:
name: Bump the Jenkins remoting version on JDK17 Windows Nanoserver 1809
kind: dockerfile
spec:
file: windows/nanoserver-1809/Dockerfile
instruction:
keyword: ARG
matcher: VERSION
scmid: default
setJdk17WindowsServer2019DockerImage:
name: Bump the Jenkins remoting version on JDK17 Windows Server 2019
setWindowsServer2019DockerImage:
name: Bump the Jenkins remoting version on Windows Server Core 2019
kind: dockerfile
spec:
file: windows/windowsservercore-ltsc2019/Dockerfile
Expand Down

0 comments on commit 9210d2c

Please sign in to comment.