forked from skylark05/jpipe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBash.yml
69 lines (68 loc) · 1.89 KB
/
Bash.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
resources:
- name: c3isetup
type: GitRepo
configuration:
gitProvider: maheshg_github
path: conan-io/c3i-setup
pipelines:
- name: TestBash
configuration:
environmentVariables:
readOnly:
pipe: yes
check: 'true'
steps:
- name: run1
type: Bash
configuration:
environmentVariables:
foo: bar
fizz: bin
inputResources:
- name: c3isetup
integrations:
- name: c3i_dev_kube
execution:
# onStart: do
onExecute:
- cd $res_c3isetup_resourcePath
- ls
- pwd
- gcloud version
- gcloud container clusters get-credentials conan-dev --zone us-west1-a --project cpe-c3i-dev
- kubectl get pods -n conan
- echo foo is $foo and fizz is $fizz
- echo pipe is $pipe
- echo check is $check
- add_run_variables firststg=1,2
- name: firststg1
type: Bash
configuration:
environmentVariables:
check: 'true'
inputSteps:
- name: run1
execution:
onExecute:
- echo first stage $firststg
- if [[ ! "$firststg" =~ "1" ]]; then echo need to skip; exit; fi
- echo pipe is $pipe
- echo check is $check
- name: firststg2
type: Bash
configuration:
inputSteps:
- name: run1
execution:
onExecute:
- if [[ ! "$firststg" =~ "2" ]]; then echo need to skip; exit; fi
- echo pipe is $pipe
- name: firststg3
type: Bash
configuration:
inputSteps:
- name: run1
execution:
onExecute:
- if [[ ! "$firststg" =~ "3" ]]; then echo need to skip; exit; fi
- echo pipe is $pipe