|
101 | 101 | stage('JDBC TO BQ'){ |
102 | 102 | when { |
103 | 103 | expression { |
104 | | - // Check if there are any changes in Java files in the last commit |
| 104 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
105 | 105 | return sh( |
106 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 106 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
107 | 107 | returnStatus: true |
108 | 108 | ) == 0 |
109 | 109 | } |
|
130 | 130 | stage('Parallel Execution 1'){ |
131 | 131 | when { |
132 | 132 | expression { |
133 | | - // Check if there are any changes in Java files in the last commit |
| 133 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
134 | 134 | return sh( |
135 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 135 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
136 | 136 | returnStatus: true |
137 | 137 | ) == 0 |
138 | 138 | } |
|
262 | 262 | stage('Parallel Execution 2'){ |
263 | 263 | when { |
264 | 264 | expression { |
265 | | - // Check if there are any changes in Java files in the last commit |
| 265 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
266 | 266 | return sh( |
267 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 267 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
268 | 268 | returnStatus: true |
269 | 269 | ) == 0 |
270 | 270 | } |
|
391 | 391 | stage('Parallel Execution 3'){ |
392 | 392 | when { |
393 | 393 | expression { |
394 | | - // Check if there are any changes in Java files in the last commit |
| 394 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
395 | 395 | return sh( |
396 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 396 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
397 | 397 | returnStatus: true |
398 | 398 | ) == 0 |
399 | 399 | } |
|
494 | 494 | stage('Parallel Execution 4'){ |
495 | 495 | when { |
496 | 496 | expression { |
497 | | - // Check if there are any changes in Java files in the last commit |
| 497 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
498 | 498 | return sh( |
499 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 499 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
500 | 500 | returnStatus: true |
501 | 501 | ) == 0 |
502 | 502 | } |
|
603 | 603 | stage('Parallel Execution 5'){ |
604 | 604 | when { |
605 | 605 | expression { |
606 | | - // Check if there are any changes in Java files in the last commit |
| 606 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
607 | 607 | return sh( |
608 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 608 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
609 | 609 | returnStatus: true |
610 | 610 | ) == 0 |
611 | 611 | } |
|
699 | 699 | stage('Parallel Execution 6'){ |
700 | 700 | when { |
701 | 701 | expression { |
702 | | - // Check if there are any changes in Java files in the last commit |
| 702 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
703 | 703 | return sh( |
704 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 704 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
705 | 705 | returnStatus: true |
706 | 706 | ) == 0 |
707 | 707 | } |
|
802 | 802 | stage('Parallel Execution 7'){ |
803 | 803 | when { |
804 | 804 | expression { |
805 | | - // Check if there are any changes in Java files in the last commit |
| 805 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
806 | 806 | return sh( |
807 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 807 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
808 | 808 | returnStatus: true |
809 | 809 | ) == 0 |
810 | 810 | } |
|
884 | 884 | stage('Parallel Execution 8'){ |
885 | 885 | when { |
886 | 886 | expression { |
887 | | - // Check if there are any changes in Java files in the last commit |
| 887 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
888 | 888 | return sh( |
889 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 889 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
890 | 890 | returnStatus: true |
891 | 891 | ) == 0 |
892 | 892 | } |
|
989 | 989 | stage('Parallel Execution 9'){ |
990 | 990 | when { |
991 | 991 | expression { |
992 | | - // Check if there are any changes in Java files in the last commit |
| 992 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
993 | 993 | return sh( |
994 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 994 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
995 | 995 | returnStatus: true |
996 | 996 | ) == 0 |
997 | 997 | } |
@@ -1105,9 +1105,9 @@ EOF |
1105 | 1105 | stage('Parallel Execution 10'){ |
1106 | 1106 | when { |
1107 | 1107 | expression { |
1108 | | - // Check if there are any changes in Java files in the last commit |
| 1108 | + // Check for changes in .java files, the pom.xml file, or the two Jenkinsfiles in their specific paths |
1109 | 1109 | return sh( |
1110 | | - script: 'git diff --name-only HEAD~1 | grep -q ".java"', |
| 1110 | + script: 'git diff --name-only HEAD~1 | grep -E ".java$|java/pom.xml|java/.ci/Jenkinsfile|java/.ci/UiJenkinsfile"', |
1111 | 1111 | returnStatus: true |
1112 | 1112 | ) == 0 |
1113 | 1113 | } |
|
0 commit comments