Skip to content

Commit d3e44ce

Browse files
korlaxxalrokdshemetov
authored andcommitted
Use anyOf for simplicity
1 parent 7702f34 commit d3e44ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Jenkinsfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ pipeline {
1919
stages {
2020
stage('Build and Package') {
2121
when {
22+
anyOf {
2223
branch "main";
24+
branch "main-nan-testing";
25+
}
2326
}
2427
steps {
2528
script {
@@ -34,7 +37,10 @@ pipeline {
3437
}
3538
stage('Deploy staging') {
3639
when {
40+
anyOf {
3741
branch "main";
42+
branch "main-nan-testing";
43+
}
3844
}
3945
steps {
4046
script {
@@ -51,6 +57,7 @@ pipeline {
5157
stage('Deploy staging [main-nan-testing]') {
5258
when {
5359
branch "main-nan-testing";
60+
}
5461
}
5562
steps {
5663
script {
@@ -61,6 +68,7 @@ pipeline {
6168
}
6269
parallel deploy_staging
6370
}
71+
sh "jenkins/deploy-staging-api-match-list.sh"
6472
}
6573
}
6674
stage('Deploy production') {

0 commit comments

Comments
 (0)