forked from tomzo/gocd-yaml-config-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.gocd.yaml
61 lines (61 loc) · 1.9 KB
/
ci.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
environments:
example:
environment_variables:
EXAMPLE_DEPLOYMENT: testing
pipelines:
- yaml-example
pipelines:
yamlpipe1:
group: simple
materials:
mygit: # this is the name of material
# says about type of material and url at once
git: http://my.example.org/mygit.git
stages:
- build: # name of stage
jobs:
build: # name of the job
tasks:
- exec: # indicates type of task
command: make
"yaml-example": # definition of yaml-example pipeline
group: yaml-example
label_template: "${mygit[:8]}"
locking: off
materials:
mygit: # this is the name of material
# keyword git 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 presence of pipeline and stage fields
# type: dependency
pipeline: yamlpipe1
stage: build
stages: # list of stages in order
- build: # name of stage
clean_workspace: true
jobs:
csharp: # name of the job
resources:
- net45
artifacts:
- build:
source: bin/
destination: build
- test:
source: tests/
destination: test-reports/
tabs:
report: test-reports/index.html
tasks: # ordered list of tasks to execute in job csharp
- fetch:
pipeline: yamlpipe1
stage: build
job: build
source: test-bin/
destination: bin/
- exec: # indicates type of task
command: make
arguments:
- "VERBOSE=true"