File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ pipeline {
19
19
stages {
20
20
stage(' Build and Package' ) {
21
21
when {
22
+ anyOf {
22
23
branch " main" ;
24
+ branch " main-nan-testing" ;
25
+ }
23
26
}
24
27
steps {
25
28
script {
@@ -34,23 +37,10 @@ pipeline {
34
37
}
35
38
stage(' Deploy staging' ) {
36
39
when {
40
+ anyOf {
37
41
branch " main" ;
38
- }
39
- steps {
40
- script {
41
- indicator_list. each { indicator ->
42
- deploy_staging[indicator] = {
43
- sh " jenkins/deploy-staging.sh ${ indicator} "
44
- }
45
- }
46
- parallel deploy_staging
47
- }
48
- sh " jenkins/deploy-staging-api-match-list.sh"
49
- }
50
- }
51
- stage(' Deploy staging [main-nan-testing]' ) {
52
- when {
53
42
branch " main-nan-testing" ;
43
+ }
54
44
}
55
45
steps {
56
46
script {
@@ -61,6 +51,7 @@ pipeline {
61
51
}
62
52
parallel deploy_staging
63
53
}
54
+ sh " jenkins/deploy-staging-api-match-list.sh"
64
55
}
65
56
}
66
57
stage(' Deploy production' ) {
You can’t perform that action at this time.
0 commit comments