-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
chore(updatecli): keep default JENKINS_VERSION and WAR_SHA up to date
#2171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
1c00dd5
4bcd80a
9c6e6a6
ec1c098
95a7475
2f00742
a7747b4
4347b7e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| --- | ||
| name: Bump default `JENKINS_VERSION` version | ||
|
|
||
| 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: | ||
| latestVersion: | ||
| kind: githubrelease | ||
| name: Get latest Jenkins Core release version | ||
| spec: | ||
| owner: jenkinsci | ||
| repository: jenkins | ||
| token: "{{ requiredEnv .github.token }}" | ||
| username: "{{ .github.username }}" | ||
| versionfilter: | ||
| kind: regex | ||
| pattern: >- | ||
| \d+\.\d+$ | ||
| transformers: | ||
| - trimprefix: "jenkins-" | ||
| latestWarSha: | ||
| kind: shell | ||
| name: Get latest Jenkins Core sha256 checksum | ||
| spec: | ||
| command: curl --disable --fail --silent --show-error --location "https://repo.jenkins-ci.org/releases/org/jenkins-ci/main/jenkins-war/{{ source "latestVersion" }}/jenkins-war-{{ source "latestVersion" }}.war.sha256" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://updates.jenkins.io/latestCore.txt is the official method of getting the latest core version
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, addressed in 4347b7e |
||
|
|
||
| conditions: | ||
| isDockerImagePublished: | ||
| name: Check if the docker image has been published | ||
| kind: dockerimage | ||
| sourceid: latestVersion | ||
| spec: | ||
| image: jenkins/jenkins | ||
|
|
||
| targets: | ||
| updateJenkinsVersionInDockerBake: | ||
| name: Update default value of JENKINS_VERSION in docker-bake.hcl | ||
| kind: hcl | ||
| sourceid: latestVersion | ||
| spec: | ||
| file: docker-bake.hcl | ||
| path: variable.JENKINS_VERSION.default | ||
| updateJenkinsVersionInDockerfiles: | ||
| name: Update value of JENKINS_VERSION in Dockerfile | ||
| kind: dockerfile | ||
| sourceid: latestVersion | ||
| spec: | ||
| files: | ||
| - alpine/hotspot/Dockerfile | ||
| - debian/Dockerfile | ||
| - rhel/Dockerfile | ||
| - windows/windowsservercore/hotspot/Dockerfile | ||
| instruction: | ||
| keyword: ARG | ||
| matcher: JENKINS_VERSION | ||
| updateJenkinsVersionInGoldenFiles: | ||
| kind: file | ||
| sourceid: latestVersion | ||
| name: Update value of JENKINS_VERSION in (weekly) golden files | ||
| spec: | ||
| files: | ||
| - tests/golden/expected_tags.txt | ||
| - tests/golden/expected_tags_latest_weekly.txt | ||
|
Comment on lines
+63
to
+64
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: no update for the LTS golden file, as it now properly uses the simulated LTS The update of this LTS golden file is done with #2172 Ref: |
||
| matchpattern: (\d+\.\d+) | ||
| updateWarShaInDockerBake: | ||
| name: Update default value of WAR_SHA in docker-bake.hcl | ||
| kind: hcl | ||
| sourceid: latestWarSha | ||
| spec: | ||
| file: docker-bake.hcl | ||
| path: variable.WAR_SHA.default | ||
|
|
||
| actions: | ||
| default: | ||
| kind: github/pullrequest | ||
| title: Bump default `JENKINS_VERSION` to {{ source "latestVersion" }} | ||
| scmid: default | ||
| spec: | ||
| labels: | ||
| - dependencies | ||
| - jenkins-version | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I had the command above in my first draft, replaced to use the same as in
docker/.ci/publish.sh
Line 85 in 52d8ee8