Skip to content

Commit e884406

Browse files
author
Rahul MR
committed
ss try
1 parent 969ec98 commit e884406

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<details>
2+
<summary>
3+
4+
```yaml
5+
version: 0.1
6+
component: command
7+
timeoutInSeconds: 10000
8+
shell: bash
9+
failImmediatelyOnError: true
10+
env:
11+
variables:
12+
NAMESPACE: "ns-demo"
13+
inputArtifacts:
14+
- name: sample-kube-yaml
15+
type: URL
16+
url: https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/deployment.yaml
17+
location: ${OCI_WORKSPACE_DIR}/ngnix.yaml
18+
19+
steps:
20+
- type: Command
21+
timeoutInSeconds: 600
22+
name: "stepOne"
23+
command: |
24+
echo "Step One.."
25+
ls -ltr
26+
27+
onFailure:
28+
- type: Command
29+
command: |
30+
echo "Handled Failure for Step One"
31+
timeoutInSeconds: 40
32+
33+
- type: Command
34+
timeoutInSeconds: 600
35+
name: "stepTwo"
36+
command: |
37+
echo "Step two"
38+
ls -ltr
39+
40+
onFailure:
41+
- type: Command
42+
command: |
43+
echo "Handled Failure for Step One"
44+
timeoutInSeconds: 40
45+
```
46+
</summary>
47+
48+
</details>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: 0.1
2+
component: command
3+
timeoutInSeconds: 10000
4+
shell: bash
5+
failImmediatelyOnError: true
6+
env:
7+
variables:
8+
NAMESPACE: "ns-demo"
9+
inputArtifacts:
10+
- name: sample-kube-yaml
11+
type: URL
12+
url: https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/deployment.yaml
13+
location: ${OCI_WORKSPACE_DIR}/ngnix.yaml
14+
15+
steps:
16+
- type: Command
17+
timeoutInSeconds: 600
18+
name: "stepOne"
19+
command: |
20+
echo "Step One.."
21+
ls -ltr
22+
23+
onFailure:
24+
- type: Command
25+
command: |
26+
echo "Handled Failure for Step One"
27+
timeoutInSeconds: 40
28+
29+
- type: Command
30+
timeoutInSeconds: 600
31+
name: "stepTwo"
32+
command: |
33+
echo "Step two"
34+
ls -ltr
35+
36+
onFailure:
37+
- type: Command
38+
command: |
39+
echo "Handled Failure for Step One"
40+
timeoutInSeconds: 40

0 commit comments

Comments
 (0)