forked from jenkinsci/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjenkins-version.yaml
More file actions
91 lines (86 loc) · 2.52 KB
/
jenkins-version.yaml
File metadata and controls
91 lines (86 loc) · 2.52 KB
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
---
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"
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
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