forked from vmware-archive/concourse-pipeline-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgated-pipeline-01-simple.yml
67 lines (63 loc) · 1.33 KB
/
gated-pipeline-01-simple.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
---
resources:
- name: my-resource
type: git
source:
branch: master
uri: https://github.com/pivotalservices/concourse-pipeline-samples.git
jobs:
- name: Run-automatically
plan:
- get: my-resource
trigger: true
- task: do-your-task-here
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
run:
path: sh
args:
- -exc
- |
echo "This job is automatically triggered upon any version change in the resource."
- name: Manually-trigger-me
plan:
- get: my-resource
passed:
- Run-automatically
trigger: false
- task: do-your-manual-task-here
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
run:
path: sh
args:
- -exc
- |
echo "Output of your manually triggered task."
- name: Do-more-stuff-after-manual-trigger
plan:
- get: my-resource
passed:
- Manually-trigger-me
trigger: true
- task: do-other-tasks-here
config:
platform: linux
image_resource:
type: docker-image
source:
repository: ubuntu
run:
path: sh
args:
- -exc
- |
echo "Output of your other tasks."