forked from ritek01/open-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline123
70 lines (70 loc) · 2.18 KB
/
pipeline123
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
pipeline:
name: ppower-ssh123
identifier: ppowerssh123
projectIdentifier: V
orgIdentifier: default
tags: {}
stages:
- stage:
name: s1
identifier: s1
description: ""
type: Deployment
spec:
deploymentType: Kubernetes
service:
serviceRef: GITHUB_PACKAGES_SERVICES
serviceInputs:
serviceDefinition:
type: Kubernetes
spec:
artifacts:
primary:
primaryArtifactRef: <+input>
sources: <+input>
environment:
environmentRef: ENV
deployToAll: false
infrastructureDefinitions:
- identifier: infr2
execution:
steps:
- parallel:
- step:
type: ShellScript
name: ShellScript_1
identifier: ShellScript_1
spec:
shell: Bash
onDelegate: true
source:
type: Inline
spec:
script: |-
echo <+ pipeline.name >
echo <+serviceVariables.serv >
environmentVariables: []
outputVariables: []
timeout: 10m
- step:
type: ShellScript
name: ShellScript_2
identifier: ShellScript_2
spec:
shell: Bash
onDelegate: true
source:
type: Inline
spec:
script: echo hi
environmentVariables: []
outputVariables: []
timeout: 10m
rollbackSteps: []
tags: {}
failureStrategies:
- onFailure:
errors:
- AllErrors
action:
type: StageRollback