Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4e99a14
Update toolchain.yml
padraic-edwards Jul 30, 2020
335ece5
Merge pull request #2 from open-toolchain/master
padraic-edwards Oct 19, 2020
e8b3c12
Merge pull request #4 from open-toolchain/master
padraic-edwards Jan 13, 2021
e74301f
Update pipeline_tekton.yml
padraic-edwards Jan 13, 2021
3992604
Update pipeline_tekton.yml
padraic-edwards Jan 13, 2021
c6377ec
Update pipeline_tekton.yml
padraic-edwards Jan 13, 2021
5208f8b
Update toolchain.yml
padraic-edwards Jan 13, 2021
8966856
Update toolchain.yml
padraic-edwards Jan 13, 2021
42df80e
Update south_pipeline_tekton.yml
padraic-edwards Jan 13, 2021
5b0d0bb
Update pipeline.yaml
padraic-edwards Jan 13, 2021
18afb06
Update south_pipeline_tekton.yml
padraic-edwards Jan 13, 2021
5a67af5
Update south_pipeline_tekton.yml
padraic-edwards Jan 13, 2021
dfc4776
Update pipeline.yaml
padraic-edwards Jan 13, 2021
e96bf0a
Update toolchain.yml
padraic-edwards Jan 13, 2021
0519fd5
Update south_pr_pipeline_tekton.yml
padraic-edwards Jan 14, 2021
529fd09
Update pr-pipeline.yaml
padraic-edwards Jan 14, 2021
c7bb2a8
Update pr-trigger.yaml
padraic-edwards Jan 14, 2021
40cfa57
Update pipeline.yaml
padraic-edwards Jan 18, 2021
5b6b63c
Update listener.yaml
padraic-edwards Jan 18, 2021
1b07f95
Update pipeline.yaml
padraic-edwards Jan 18, 2021
97bf7a7
Update pr-pipeline.yaml
padraic-edwards Jan 18, 2021
820d242
Update pr-trigger.yaml
padraic-edwards Jan 18, 2021
f9906d1
Update listener.yaml
padraic-edwards Jan 18, 2021
a9a8fc3
Update pipeline_tekton.yml
padraic-edwards Jan 18, 2021
46ffa4f
Update pr_pipeline_tekton.yml
padraic-edwards Jan 18, 2021
232f134
Update pr_pipeline_tekton.yml
padraic-edwards Jan 18, 2021
2737840
Update toolchain.yml
padraic-edwards Jan 18, 2021
32807ea
Update toolchain.yml
padraic-edwards Jan 18, 2021
70b4789
Update pr-trigger.yaml
padraic-edwards Jan 18, 2021
465ec81
Update pipeline.yaml
padraic-edwards Jan 18, 2021
96eec79
Update pr-trigger.yaml
padraic-edwards Jan 18, 2021
92ff71a
revert open-toolchain repos
padraic-edwards Jan 18, 2021
944d7fb
Update toolchain.yml
padraic-edwards Jan 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .bluemix/pipeline_tekton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,11 @@ properties:
- name: dev-resource-group
value: ${PROD_RESOURCE_GROUP}
type: text
- name: repository
value: ${APP_REPO}
type: integration
path: parameters.repo_url
- name: insights
value: ${INSIGHTS}
type: integration
path: service_id
8 changes: 8 additions & 0 deletions .bluemix/pr_pipeline_tekton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ properties:
- name: pipeline-debug
value: "0"
type: text
- name: repository
value: ${APP_REPO}
type: integration
path: parameters.repo_url
- name: insights
value: ${INSIGHTS}
type: integration
path: service_id
8 changes: 8 additions & 0 deletions .bluemix/south_pipeline_tekton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,11 @@ properties:
- name: dev-resource-group
value: ${PROD_RESOURCE_GROUP}
type: text
- name: repository
value: ${APP_REPO}
type: integration
path: parameters.repo_url
- name: insights
value: ${INSIGHTS}
type: integration
path: service_id
8 changes: 8 additions & 0 deletions .bluemix/south_pr_pipeline_tekton.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ properties:
- name: pipeline-debug
value: "0"
type: text
- name: repository
value: ${APP_REPO}
type: integration
path: parameters.repo_url
- name: insights
value: ${INSIGHTS}
type: integration
path: service_id
4 changes: 4 additions & 0 deletions .bluemix/toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ services:
services:
- repo
- tekton-catalog-repo
- devops-insights
name: 'pr-pipeline'
type: >
$env.pipeline_type === 'tekton' ? 'tekton': 'classic'
Expand All @@ -94,6 +95,7 @@ services:
}
env:
PIPELINE_REPO: pipeline-repo
INSIGHTS: devops-insights
APP_REPO: repo
API_KEY: '{{form.pipeline.parameters.api-key}}'
APP_NAME: "{{form.pipeline.parameters.app-name}}"
Expand Down Expand Up @@ -122,6 +124,7 @@ services:
parameters:
services:
- repo
- devops-insights
name: 'ci-pipeline'
ui-pipeline: true
type: >
Expand All @@ -140,6 +143,7 @@ services:
}
env:
APP_REPO: repo
INSIGHTS: devops-insights
APP_NAME: "{{form.pipeline.parameters.app-name}}"
REGISTRY_REGION_ID: "{{form.pipeline.parameters.registry-region}}"
REGISTRY_NAMESPACE: "{{form.pipeline.parameters.registry-namespace}}"
Expand Down
5 changes: 4 additions & 1 deletion .pipeline/listener.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ spec:
description: the name of the cluster to target
- name: dev-region
- name: dev-resource-group
- name: insights
- name: dev-cluster-namespace
description: namespace dev
resourcetemplates:
Expand Down Expand Up @@ -105,6 +106,8 @@ spec:
value: $(params.dev-cluster-namespace)
- name: pipeline-debug
value: $(params.pipeline-debug)
- name: insights
value: $(params.insights)
workspaces:
- name: pipeline-ws
persistentVolumeClaim:
Expand Down Expand Up @@ -240,4 +243,4 @@ spec:
- binding:
name: bitbucket-commit
template:
name: trigger-template-secure-kube
name: trigger-template-secure-kube
35 changes: 9 additions & 26 deletions .pipeline/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ spec:
default: "deployment.yml"
- name: dev-region
- name: dev-resource-group
- name: insights
- name: cluster-name
description: the name of the cluster to target
- name: dev-cluster-namespace
Expand All @@ -51,15 +52,6 @@ spec:
workspaces:
- name: pipeline-ws
tasks:
- name: extract-repository-url
taskRef:
name: toolchain-extract-value
params:
- name: expression
# if a params.repository is given, it takes precedence
value: '. as $toolchain | ["$(params.repository)"] | if .[0]=="" then $toolchain | .services[] | select(.toolchain_binding.name=="repo") | .dashboard_url else .[0] end'
- name: pipeline-debug
value: $(params.pipeline-debug)
- name: git-clone
taskRef:
name: git-clone-repo
Expand All @@ -69,7 +61,7 @@ spec:
- name: ibmcloud-apikey-secret-key
value: "toolchain-apikey"
- name: repository
value: $(tasks.extract-repository-url.results.extracted-value)
value: $(params.repository)
- name: branch
value: $(params.branch)
- name: revision
Expand All @@ -79,21 +71,12 @@ spec:
workspaces:
- name: output
workspace: pipeline-ws
- name: extract-doi-enablement
taskRef:
name: toolchain-extract-value
params:
# count the number of service in the toolchain that are DevopsInsights
- name: expression
value: 'reduce .services[] as $service (0; if $service.service_id=="draservicebroker" then .+1 else . end)'
- name: pipeline-debug
value: $(params.pipeline-debug)
- name: publish-doi-buildrecord
runAfter: [extract-doi-enablement]
runAfter: [git-clone]
when:
- input: $(tasks.extract-doi-enablement.results.extracted-value)
- input: $(params.insights)
operator: in
values: ["1"]
values: ["draservicebroker"]
taskRef:
name: doi-publish-buildrecord
params:
Expand Down Expand Up @@ -143,9 +126,9 @@ spec:
- name: publish-doi-code-tests
runAfter: [unit-tests]
when:
- input: $(tasks.extract-doi-enablement.results.extracted-value)
- input: $(params.insights)
operator: in
values: ["1"]
values: ["draservicebroker"]
taskRef:
name: doi-publish-testrecord
params:
Expand Down Expand Up @@ -232,9 +215,9 @@ spec:
- name: publish-doi-va-scan-record
runAfter: [vulnerability-advisor]
when:
- input: $(tasks.extract-doi-enablement.results.extracted-value)
- input: $(params.insights)
operator: in
values: ["1"]
values: ["draservicebroker"]
taskRef:
name: doi-publish-testrecord
params:
Expand Down
13 changes: 2 additions & 11 deletions .pr-pipeline/pr-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,7 @@ spec:
workspaces:
- name: pipeline-ws

tasks:
- name: extract-repository-url
taskRef:
name: toolchain-extract-value
params:
- name: expression
# if a params.repository is given, it takes precedence
value: '. as $toolchain | ["$(params.repository)"] | if .[0]=="" then $toolchain | .services[] | select(.toolchain_binding.name=="repo") | .dashboard_url else .[0] end'
- name: pipeline-debug
value: $(params.pipeline-debug)
tasks:
- name: git-clone
taskRef:
name: git-clone-repo
Expand All @@ -44,7 +35,7 @@ spec:
- name: ibmcloud-apikey-secret-key
value: "apikey"
- name: repository
value: $(tasks.extract-repository-url.results.extracted-value)
value: $(params.repository)
- name: branch
value: $(params.branch)
- name: revision
Expand Down
9 changes: 8 additions & 1 deletion .pr-pipeline/pr-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ spec:
- name: pr-url
description: PR url
- name: apikey
- name: insights
- name: commit-timestamp
description: commit timestamp
- name: scm-type
description: source code type used (github, github-ent, gitlab)
- name: project-id
description: project id
default: ""
- name: repository
description: the repo integration url
resourcetemplates:
- apiVersion: v1
kind: PersistentVolumeClaim
Expand Down Expand Up @@ -70,4 +73,8 @@ spec:
- name: scm-type
value: $(params.scm-type)
- name: project-id
value: $(params.project-id)
value: $(params.project-id)
- name: insights
value: $(params.insights)
- name: repository
value: $(params.repository)
5 changes: 4 additions & 1 deletion .south_pipeline/listener.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ spec:
- name: pr-url
description: PR url
- name: apikey
- name: insights
- name: commit-timestamp
description: commit timestamp
- name: scm-type
Expand Down Expand Up @@ -124,7 +125,9 @@ spec:
- name: scm-type
value: $(params.scm-type)
- name: project-id
value: $(params.project-id)
value: $(params.project-id)
- name: insights
value: $(params.insights)
workspaces:
- name: pipeline-ws
persistentVolumeClaim:
Expand Down
21 changes: 6 additions & 15 deletions .south_pipeline/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,7 @@ spec:
default: ""
workspaces:
- name: pipeline-ws
tasks:
- name: extract-repository-url
taskRef:
name: toolchain-extract-value
params:
- name: expression
# if a params.repository is given, it takes precedence
value: '. as $toolchain | ["$(params.repository)"] | if .[0]=="" then $toolchain | .services[] | select(.toolchain_binding.name=="repo") | .dashboard_url else .[0] end'
- name: pipeline-debug
value: $(params.pipeline-debug)
tasks:
- name: git-clone
taskRef:
name: git-clone-repo
Expand All @@ -75,7 +66,7 @@ spec:
- name: ibmcloud-apikey-secret-key
value: "toolchain-apikey"
- name: repository
value: $(tasks.extract-repository-url.results.extracted-value)
value: $(params.repository)
- name: branch
value: $(params.branch)
- name: revision
Expand Down Expand Up @@ -123,7 +114,7 @@ spec:
workspace: pipeline-ws
params:
- name: repository
value: $(tasks.extract-repository-url.results.extracted-value)
value: $(params.repository)
- name: revision
value: $(params.branch)
- name: commit-id
Expand All @@ -146,7 +137,7 @@ spec:
workspace: pipeline-ws
params:
- name: repository
value: $(tasks.extract-repository-url.results.extracted-value)
value: $(params.repository)
- name: revision
value: $(params.branch)
- name: pr-url
Expand All @@ -169,7 +160,7 @@ spec:
workspace: pipeline-ws
params:
- name: repository
value: $(tasks.extract-repository-url.results.extracted-value)
value: $(params.repository)
- name: revision
value: $(params.branch)
- name: pr-url
Expand All @@ -194,7 +185,7 @@ spec:
workspace: pipeline-ws
params:
- name: repository
value: $(tasks.extract-repository-url.results.extracted-value)
value: $(params.repository)
- name: revision
value: $(params.branch)
- name: pr-url
Expand Down
Loading