Skip to content

Commit

Permalink
Merge pull request #27 from bcgov/ocp-201-lab
Browse files Browse the repository at this point in the history
Changes for 201 Pipelines lab
  • Loading branch information
jayfray12 authored Apr 20, 2022
2 parents 15cda3f + f3d9214 commit 465b9db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions tekton/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ spec:
- name: runSonarScan
value: 'true'
- name: sonarProject
value: ci-testing
value: bcgov_pipeline-templates
workspaces:
- name: shared-data
volumeClaimTemplate:
Expand Down Expand Up @@ -375,8 +375,8 @@ For scans with SonarCloud, create a `sonar-project.properties` file at the root
```conf
# sonar-project.properties
sonar.organization=ci-testing
sonar.projectKey=tekton
sonar.organization=bcgov-sonarcloud
sonar.projectKey=bcgov_pipeline-templates
sonar.host.url=https://sonarcloud.io
```
Expand Down
14 changes: 7 additions & 7 deletions tekton/base/triggers/trigger-maven-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
generateName: maven-build-run-
spec:
pipelineRef:
name: p-maven-build
name: p-mvn-build
params:
- name: appName
value: $(tt.params.appName)
Expand Down Expand Up @@ -56,7 +56,7 @@ kind: EventListener
metadata:
name: maven-build-event-listener
spec:
serviceAccountName: service-tekton-triggers-sa
serviceAccountName: pipeline
triggers:
- name: github-listener
interceptors:
Expand All @@ -68,19 +68,19 @@ spec:
- pull_request
- push
bindings:
- ref: build-push-image-pipeline-binding
- ref: maven-build-trigger-binding
template:
ref: build-push-image-template
ref: maven-build-trigger
---
apiVersion: triggers.tekton.dev/v1alpha1
kind: TriggerBinding
metadata:
name: maven-build-trigger-binding
spec:
params:
- name: gitrevision
value: $(body.head_commit.id)
- name: gitrepositoryurl
- name: branchName
value: $(body.ref)
- name: repoUrl
value: $(body.repository.url)
- name: contenttype
value: $(header.Content-Type)
2 changes: 1 addition & 1 deletion tekton/demo/maven-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<sonar.organization>ci-testing</sonar.organization>
<sonar.organization>bcgov-sonarcloud</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>

Expand Down

0 comments on commit 465b9db

Please sign in to comment.