• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

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

修訂3a7765f180557f719e63ef51e9f5877caa2dee53 (tree)
時間2019-07-24 17:01:34
作者James Strachan <james.strachan@gmai...>
CommiterGitHub

Log Message

Merge pull request #24 from jstrachan/stuff

fixes for bitbucket server + latest lighthouse

Change Summary

差異

--- a/env/requirements.yaml
+++ b/env/requirements.yaml
@@ -12,7 +12,7 @@ dependencies:
1212 alias: lighthouse
1313 name: lighthouse
1414 repository: http://chartmuseum.jenkins-x.io
15- version: 0.0.52
15+ version: 0.0.53
1616 - name: jenkins-x-platform
1717 repository: http://chartmuseum.jenkins-x.io
1818 version: 2.0.872
--- a/env/templates/dev-env.yaml
+++ b/env/templates/dev-env.yaml
@@ -15,7 +15,7 @@ spec:
1515 {{- if and .Values.gitops.dev.repo .Values.gitops.dev.owner }}
1616 source:
1717 ref: master
18- url: "{{ .Values.gitops.dev.server | default .Values.gitops.server }}/{{ .Values.gitops.dev.owner }}/{{ .Values.gitops.dev.repo }}.git"
18+ url: "{{ .Values.gitops.dev.server | default .Values.gitops.server }}{{ .Values.gitops.gitUrlPathPrefix}}/{{ .Values.gitops.dev.owner }}/{{ .Values.gitops.dev.repo }}.git"
1919 {{- end }}
2020 teamSettings:
2121 appsRepository: http://chartmuseum.jenkins-x.io
--- a/env/templates/production-env.yaml
+++ b/env/templates/production-env.yaml
@@ -14,5 +14,5 @@ spec:
1414 promotionStrategy: Manual
1515 source:
1616 ref: master
17- url: "{{ .Values.gitops.production.server | default .Values.gitops.server }}/{{ .Values.gitops.production.owner | default .Values.gitops.owner }}/{{ .Values.gitops.production.repo }}.git"
17+ url: "{{ .Values.gitops.production.server | default .Values.gitops.server }}{{ .Values.gitops.gitUrlPathPrefix}}/{{ .Values.gitops.production.owner | default .Values.gitops.owner }}/{{ .Values.gitops.production.repo }}.git"
1818 {{- end }}
\ No newline at end of file
--- a/env/templates/production-repo.yaml
+++ b/env/templates/production-repo.yaml
@@ -7,7 +7,10 @@ metadata:
77 jenkins.io/gitSync: "false"
88 spec:
99 provider: "{{ .Values.gitops.production.server | default .Values.gitops.server }}"
10- providerName: '{{ .Values.gitops.gitKind | default "github" }}'
10+ providerName: '{{ .Values.gitops.gitName | default .Values.gitops.gitKind | default "github" }}'
11+ providerKind: '{{ .Values.gitops.gitKind | default "github" }}'
12+ httpCloneURL: "{{ .Values.gitops.production.server | default .Values.gitops.server }}{{ .Values.gitops.gitUrlPathPrefix}}/{{ .Values.gitops.production.owner | default .Values.gitops.owner }}/{{ .Values.gitops.production.repo }}.git"
13+ url: "{{ .Values.gitops.production.server | default .Values.gitops.server }}{{ .Values.gitops.gitUrlPathPrefix}}/{{ .Values.gitops.production.owner | default .Values.gitops.owner }}/{{ .Values.gitops.production.repo }}.git"
1114 org: "{{ .Values.gitops.production.owner | default .Values.gitops.owner }}"
1215 repo: "{{ .Values.gitops.production.repo }}"
1316 description: "the git repository for the Production environment"
--- a/env/templates/staging-env.yaml
+++ b/env/templates/staging-env.yaml
@@ -13,5 +13,5 @@ spec:
1313 promotionStrategy: Auto
1414 source:
1515 ref: master
16- url: "{{ .Values.gitops.staging.server | default .Values.gitops.server }}/{{ .Values.gitops.staging.owner | default .Values.gitops.owner }}/{{ .Values.gitops.staging.repo }}.git"
16+ url: "{{ .Values.gitops.staging.server | default .Values.gitops.server }}{{ .Values.gitops.gitUrlPathPrefix}}/{{ .Values.gitops.staging.owner | default .Values.gitops.owner }}/{{ .Values.gitops.staging.repo }}.git"
1717 {{- end }}
\ No newline at end of file
--- a/env/templates/staging-repo.yaml
+++ b/env/templates/staging-repo.yaml
@@ -7,9 +7,12 @@ metadata:
77 jenkins.io/gitSync: "false"
88 spec:
99 provider: "{{ .Values.gitops.staging.server | default .Values.gitops.server }}"
10- providerName: '{{ .Values.gitops.gitKind | default "github" }}'
10+ providerName: '{{ .Values.gitops.gitName | default .Values.gitops.gitKind | default "github" }}'
11+ providerKind: '{{ .Values.gitops.gitKind | default "github" }}'
1112 org: "{{ .Values.gitops.staging.owner | default .Values.gitops.owner }}"
1213 repo: "{{ .Values.gitops.staging.repo }}"
14+ url: "{{ .Values.gitops.staging.server | default .Values.gitops.server }}{{ .Values.gitops.gitUrlPathPrefix}}/{{ .Values.gitops.staging.owner | default .Values.gitops.owner }}/{{ .Values.gitops.staging.repo }}.git"
15+ httpCloneURL: "{{ .Values.gitops.staging.server | default .Values.gitops.server }}{{ .Values.gitops.gitUrlPathPrefix}}/{{ .Values.gitops.staging.owner | default .Values.gitops.owner }}/{{ .Values.gitops.staging.repo }}.git"
1316 description: "the git repository for the Staging environment"
1417 scheduler:
1518 kind: Scheduler
--- a/env/values.tmpl.yaml
+++ b/env/values.tmpl.yaml
@@ -16,7 +16,11 @@ gitops:
1616 server: {{ .Requirements.cluster.gitServer | default "https://github.com" }}
1717 owner: ""
1818 webhook: {{ .Requirements.webhook | default "prow" | title | quote }}
19-
19+{{- if eq .Requirements.cluster.gitKind "bitbucketserver" }}
20+ gitUrlPathPrefix: "/scm"
21+{{- else }}
22+ gitUrlPathPrefix: ""
23+{{- end }}
2024
2125 dev:
2226 server: ""