-
Notifications
You must be signed in to change notification settings - Fork 10
/
test-pipeline.yml
91 lines (87 loc) · 2.77 KB
/
test-pipeline.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Example Deployment
application: example
disableConcurrentExecutions: true
keepQueuedPipelines: true
description: This pipeline deploys some sweet code
notifications:
- address: "#launchpad"
type: "slack"
when:
- pipeline.complete
- pipeline.failed
message:
pipeline.complete: |
The stage has completed!
pipeline.failed: |
The stage has failed!
parameters:
- name: "random"
description: "random description"
required: true
default: "hello-world"
triggers:
- webhook:
source: "random-string"
enabled: true
stages:
- account: ops-k8s
name: "Deploy Manifests"
deployEmbeddedManifests:
files:
- file: test-deployment.yml
- file: test-configmap.yml
- file: test-sa.yml
configuratorFiles:
- file: test-configurator2.yml
env: superOps
- file: test-configurator.yml
containerOverrides:
- name: nginx
resources:
requests:
memory: 512Mi
- account: ops-k8s
name: "Scale Up"
scaleManifest:
namespace: "looker"
kind: "deployment"
name: "looker"
replicas: 5
- account: ops-k8s
name: "Delete INT"
deleteEmbeddedManifest:
file: test-deployment.yml
- name: "Trigger Jenkins Job"
jenkins:
job: "QA/job/stage/job/UI/job/SLI"
parameters: # Optional, if excluded Jenkins will use default parameter values
- key: BROWSER
value: "chrome"
- key: Environment
value: "stage"
- key: NPMSCRIPT
value: test:sli
# master: "namely-jenkins" # Optional, defaults to "namely-jenkins"
# completeOtherBranchesThenFail: false # Optional, defaults to false
# continuePipeline: true # Optional, defaults to true
# failPipeline: false # Optional, defaults to false
# markUnstableAsSuccessful: false # Optional, defaults to false
# waitForCompletion: true # Optional, defaults to true
- name: "Trigger Spinnaker Pipeline"
spinnaker:
application: "badges"
pipeline: "2c4a14d9-2f25-4a2a-b2d6-c31e596bce19"
parameters: # Optional, if excluded Jenkins will use default parameter values
- key: badges_docker_image
value: "img:1234"
- key: file_data
value: "data=has,date=now"
- key: file_path
value: rel/ative/path
- key: service_name
value: coolName
# completeOtherBranchesThenFail: false # Optional, defaults to false
# continuePipeline: false # Optional, defaults to false
# failPipeline: true # Optional, defaults to true
# markUnstableAsSuccessful: false # Optional, defaults to false
# waitForCompletion: true # Optional, defaults to true