the default GitOps source repository for booting up Jenkins X
修訂 | 3a7765f180557f719e63ef51e9f5877caa2dee53 (tree) |
---|---|
時間 | 2019-07-24 17:01:34 |
作者 | James Strachan <james.strachan@gmai...> |
Commiter | GitHub |
Merge pull request #24 from jstrachan/stuff
fixes for bitbucket server + latest lighthouse
@@ -12,7 +12,7 @@ dependencies: | ||
12 | 12 | alias: lighthouse |
13 | 13 | name: lighthouse |
14 | 14 | repository: http://chartmuseum.jenkins-x.io |
15 | - version: 0.0.52 | |
15 | + version: 0.0.53 | |
16 | 16 | - name: jenkins-x-platform |
17 | 17 | repository: http://chartmuseum.jenkins-x.io |
18 | 18 | version: 2.0.872 |
@@ -15,7 +15,7 @@ spec: | ||
15 | 15 | {{- if and .Values.gitops.dev.repo .Values.gitops.dev.owner }} |
16 | 16 | source: |
17 | 17 | 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" | |
19 | 19 | {{- end }} |
20 | 20 | teamSettings: |
21 | 21 | appsRepository: http://chartmuseum.jenkins-x.io |
@@ -14,5 +14,5 @@ spec: | ||
14 | 14 | promotionStrategy: Manual |
15 | 15 | source: |
16 | 16 | 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" | |
18 | 18 | {{- end }} |
\ No newline at end of file |
@@ -7,7 +7,10 @@ metadata: | ||
7 | 7 | jenkins.io/gitSync: "false" |
8 | 8 | spec: |
9 | 9 | 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" | |
11 | 14 | org: "{{ .Values.gitops.production.owner | default .Values.gitops.owner }}" |
12 | 15 | repo: "{{ .Values.gitops.production.repo }}" |
13 | 16 | description: "the git repository for the Production environment" |
@@ -13,5 +13,5 @@ spec: | ||
13 | 13 | promotionStrategy: Auto |
14 | 14 | source: |
15 | 15 | 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" | |
17 | 17 | {{- end }} |
\ No newline at end of file |
@@ -7,9 +7,12 @@ metadata: | ||
7 | 7 | jenkins.io/gitSync: "false" |
8 | 8 | spec: |
9 | 9 | 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" }}' | |
11 | 12 | org: "{{ .Values.gitops.staging.owner | default .Values.gitops.owner }}" |
12 | 13 | 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" | |
13 | 16 | description: "the git repository for the Staging environment" |
14 | 17 | scheduler: |
15 | 18 | kind: Scheduler |
@@ -16,7 +16,11 @@ gitops: | ||
16 | 16 | server: {{ .Requirements.cluster.gitServer | default "https://github.com" }} |
17 | 17 | owner: "" |
18 | 18 | webhook: {{ .Requirements.webhook | default "prow" | title | quote }} |
19 | - | |
19 | +{{- if eq .Requirements.cluster.gitKind "bitbucketserver" }} | |
20 | + gitUrlPathPrefix: "/scm" | |
21 | +{{- else }} | |
22 | + gitUrlPathPrefix: "" | |
23 | +{{- end }} | |
20 | 24 | |
21 | 25 | dev: |
22 | 26 | server: "" |