-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.gocd.yaml
40 lines (40 loc) · 1.22 KB
/
config.gocd.yaml
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
environments:
docker:
pipelines:
- build-on-docker-agent
pipelines:
build-on-docker-agent:
group: hello-cd
materials:
git-repo: # material name
git: /source
branch: master
stages:
- build: # stage name
clean_workspace: true
jobs:
build-artifact: # job name
artifacts:
- test:
source: build/output/reports/*tests.xml
destination: "tests"
tasks:
- exec: # type of task
command: ./docker/build.sh
- analyze: # stage name
clean_workspace: true
jobs:
code-analysis:
artifacts:
- build:
source: build/output/reports/*_coverage_analysis/
destination: "reports"
- build:
source: build/output/reports/*static_analysis.xml
destination: "reports"
tabs:
mylib: reports/mylib_coverage_analysis/index.html
myutils: reports/mylib_coverage_analysis/index.html
tasks:
- exec:
command: ./docker/run-analysis.sh