-
-
Notifications
You must be signed in to change notification settings - Fork 108
/
jenkins-lts.yaml
59 lines (54 loc) · 1.4 KB
/
jenkins-lts.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
---
name: Bump Jenkins LTS 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:
jenkinsLatestLTS:
kind: jenkins
name: Get latest stable jenkins version
spec:
release: stable
transformers:
- addsuffix: "-jdk17"
conditions:
defaultCidockerimage:
name: "Ensure default jenkins docker image name set to jenkins/jenkins"
kind: yaml
disablesourceinput: true
spec:
file: hieradata/common.yaml
key: $.profile::jenkinscontroller::docker_image
value: "jenkins/jenkins"
testdockerimageExist:
kind: dockerimage
sourceid: jenkinsLatestLTS
spec:
image: "jenkins/jenkins"
architecture: amd64
# Tag comes from the source input value
targets:
imageTag:
name: "Update Docker Image tag for jenkins/jenkins:lts"
sourceid: jenkinsLatestLTS
kind: yaml
spec:
file: hieradata/common.yaml
key: $.profile::jenkinscontroller::docker_tag
scmid: default
actions:
default:
kind: github/pullrequest
scmid: default
title: Bump Jenkins LTS version to {{ source "jenkinsLatestLTS" }}
spec:
labels:
- dependencies