forked from tomzo/gocd-yaml-config-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rich.gocd.yaml
65 lines (65 loc) · 2.08 KB
/
rich.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# rich.gocd.yaml
pipelines: # tells plugin that here are pipelines by name
pipe2:
group: rich
label_template: "${mygit[:8]}"
locking: on
tracking_tool:
link: "http://your-trackingtool/yourproject/${ID}"
regex: "evo-(\\d+)"
timer:
spec: "0 0 22 ? * MON-FRI"
only_on_changes: true
materials:
mygit: # this is the name of material
# says about type of material and url at once
git: http://my.example.org/mygit.git
branch: ci
upstream:
# type is optional here, material type is implied based on pipeline and stage fields
type: dependency
pipeline: pipe2
stage: test
stages:
- build: # name of stage
clean_workspace: true
approval:
type: manual
allow_only_on_success: true
roles:
- manager
jobs:
csharp: # name of the job
run_instances: 3
resources:
- net45
artifacts:
- build:
source: bin/
destination: build
- test:
source: tests/
destination: test-reports/
tabs:
report: test-reports/index.html
environment_variables:
MONO_PATH: /usr/bin/local/mono
secure_variables:
PASSWORD: "s&Du#@$xsSa"
properties:
perf:
source: test.xml
xpath: "substring-before(//report/data/all/coverage[starts-with(@type,\u0027class\u0027)]/@value, \u0027%\u0027)"
tasks:
- fetch:
pipeline: pipe2
stage: build
job: test
source: test-bin/
destination: bin/
- exec: # indicates type of task
command: make
arguments:
- "VERBOSE=true"
# shorthand for script-executor plugin
- script: ./build.sh ci