• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

the default GitOps source repository for booting up Jenkins X


Commit MetaInfo

Révisionf8fcc0707c7e6736484950ad2dd9d96456cdd82b (tree)
l'heure2019-08-30 00:51:08
AuteurJames Strachan <james.strachan@gmai...>
CommiterJames Strachan

Message de Log

fix: support jenkins server as a webhook handler

see https://github.com/jenkins-x/jx/issues/5261 for more

Change Summary

Modification

--- a/env/docker-registry/values.tmpl.yaml
+++ b/env/docker-registry/values.tmpl.yaml
@@ -1 +1,5 @@
1-enabled: false
\ No newline at end of file
1+{{- if eq .Requirements.webhook "jenkins" }}
2+enabled: true
3+{{- else }}
4+enabled: false
5+{{- end }}
--- a/env/jenkins-x-platform/values.tmpl.yaml
+++ b/env/jenkins-x-platform/values.tmpl.yaml
@@ -13,7 +13,11 @@ chartmuseum:
1313 BASIC_AUTH_PASS: "{{ .Parameters.adminUser.password }}"
1414
1515 nexus:
16- defaultAdminPassword: "{{ .Parameters.adminUser.password }}"
16+ defaultAdminPassword: "{{ .Parameters.adminUser.password }}"
17+
18+jenkins:
19+ Master:
20+ AdminPassword: "{{ .Parameters.adminUser.password }}"
1721
1822 PipelineSecrets:
1923 GitCreds: https://{{ .Parameters.pipelineUser.username }}:{{ .Parameters.pipelineUser.token }}@{{ trimPrefix "https://" .Requirements.cluster.gitServer | default "https://github.com" | }}
--- a/env/jenkins/values.tmpl.yaml
+++ b/env/jenkins/values.tmpl.yaml
@@ -2,4 +2,4 @@
22 enabled: true
33 {{- else }}
44 enabled: false
5-{{- end }}
\ No newline at end of file
5+{{- end }}
--- a/env/jxboot-resources/values.tmpl.yaml
+++ b/env/jxboot-resources/values.tmpl.yaml
@@ -26,7 +26,7 @@ gitops:
2626 gitName: {{ .Requirements.cluster.gitName | default "github" }}
2727 server: {{ .Requirements.cluster.gitServer | default "https://github.com" }}
2828 owner: {{ .Requirements.cluster.environmentGitOwner }}
29- webhook: {{ .Requirements.webhook | default "prow" | title | quote }}
29+ webhook: {{ .Requirements.webhook | default "prow" | quote }}
3030 {{- if eq .Requirements.cluster.gitKind "bitbucketserver" }}
3131 gitUrlPathPrefix: "/scm"
3232 {{- else }}
--- a/env/parameters.schema.json
+++ b/env/parameters.schema.json
@@ -1,3 +1,4 @@
1+
12 {
23 "$id": "https:/jenkins-x.io/tests/descriptionAndTitle.schema.json",
34 "$schema": "http://json-schema.org/draft-07/schema#",
--- /dev/null
+++ b/env/templates/.gitignore
@@ -0,0 +1 @@
1+# dummy
\ No newline at end of file
--- a/env/values.tmpl.yaml
+++ b/env/values.tmpl.yaml
@@ -1 +1,8 @@
1-dummy: true
\ No newline at end of file
1+tekton:
2+{{- if eq .Requirements.webhook "prow" }}
3+ enabled: true
4+{{- else if eq .Requirements.webhook "lighthouse" }}
5+ enabled: true
6+{{- else }}
7+ enabled: false
8+{{- end }}
--- a/kubeProviders/gke/values.tmpl.yaml
+++ b/kubeProviders/gke/values.tmpl.yaml
@@ -1,7 +1,11 @@
11 # Override configuration from https://github.com/jenkins-x/jenkins-x-platform/blob/master/jenkins-x-platform/values.yaml
22
33 jenkins-x-platform:
4+{{- if eq .Requirements.webhook "jenkins" }}
5+ dockerRegistry: ""
6+{{- else }}
47 dockerRegistry: gcr.io
8+{{- end }}
59
610 PipelineSecrets:
711
@@ -18,5 +22,9 @@ jenkins-x-platform:
1822 }
1923
2024 docker-registry:
25+{{- if eq .Requirements.webhook "jenkins" }}
26+ enabled: true
27+{{- else }}
2128 enabled: false
29+{{- end }}
2230