forked from gencat/demo-JEE-REST
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo-canigo.yml
41 lines (39 loc) · 893 Bytes
/
demo-canigo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
resource_types:
- name: sonar-runner
type: docker-image
source:
repository: cathive/concourse-sonarqube-resource
tag: latest
resources:
- name: source-code
type: git
source:
uri: https://github.com/mostrovoi/demo-canigo.git
branch: master
- name: sonar-analysis
type: sonar-runner
source:
host_url: https://sonarqube.devops.matxa.es
login: ((SONARQUBE_AUTH_TOKEN))
project_key: com.demo.canigo
branch: master
jobs:
- name: build-and-analyse-demo-canigo
plan:
- get: source-code
trigger: true
- task: unit-tests
privileged: true
file: source-code/tasks/package.yml
- put: sonar-analysis
params:
project_path: source-code
- name: sonarqualitygate
plan:
- get: sonar-analysis
passed:
- build-and-analyse-demo-canigo
trigger: true
- task: break-build
file: source-code/task/break-build.yml