@@ -64,36 +64,80 @@ pipeline {
64
64
}
65
65
}
66
66
67
- stage(" test-jdks" ) {
68
- matrix {
69
- axes {
70
- axis {
71
- name " TEST_JDK"
72
- values " 8" , " 16"
73
- }
67
+ // Note: currently not using matrix build because if builds run in parallel they can block each other.
68
+ // Maybe use throttle plugin?
69
+ // stage("test-jdks") {
70
+ // matrix {
71
+ // axes {
72
+ // axis {
73
+ // name "TEST_JDK"
74
+ // values "8", "16"
75
+ // }
76
+ // }
77
+ // stages {
78
+ // stage("test") {
79
+ // // Set agent to start with new workspace to avoid Gradle compile issues on shared workspace
80
+ // agent {
81
+ // label 'java'
82
+ // }
83
+ // environment {
84
+ // TEST_JDK = "${TEST_JDK}"
85
+ // }
86
+ // steps {
87
+ // // "|| true" for an OK exit code if no file is found
88
+ // sh 'rm tests/objectbox-java-test/hs_err_pid*.log || true'
89
+ // // Note: do not run check task as it includes SpotBugs.
90
+ // sh "./ci/test-with-asan.sh $gradleArgs $gitlabRepoArgs clean :tests:objectbox-java-test:test"
91
+ // }
92
+ // post {
93
+ // always {
94
+ // junit '**/build/test-results/**/TEST-*.xml'
95
+ // archiveArtifacts artifacts: 'tests/*/hs_err_pid*.log', allowEmptyArchive: true // Only on JVM crash.
96
+ // }
97
+ // }
98
+ // }
99
+ // }
100
+ // }
101
+ // }
102
+ stage(" test-jdk-8" ) {
103
+ // Set agent to start with new workspace to avoid Gradle compile issues on shared workspace
104
+ agent {
105
+ label ' java'
106
+ }
107
+ environment {
108
+ TEST_JDK = " 8"
109
+ }
110
+ steps {
111
+ // "|| true" for an OK exit code if no file is found
112
+ sh ' rm tests/objectbox-java-test/hs_err_pid*.log || true'
113
+ // Note: do not run check task as it includes SpotBugs.
114
+ sh " ./ci/test-with-asan.sh $gradleArgs $gitlabRepoArgs clean :tests:objectbox-java-test:test"
115
+ }
116
+ post {
117
+ always {
118
+ junit ' **/build/test-results/**/TEST-*.xml'
119
+ archiveArtifacts artifacts : ' tests/*/hs_err_pid*.log' , allowEmptyArchive : true // Only on JVM crash.
74
120
}
75
- stages {
76
- stage(" test" ) {
77
- // Set agent to start with new workspace to avoid Gradle compile issues on shared workspace
78
- agent {
79
- label ' java'
80
- }
81
- environment {
82
- TEST_JDK = " ${ TEST_JDK} "
83
- }
84
- steps {
85
- // "|| true" for an OK exit code if no file is found
86
- sh ' rm tests/objectbox-java-test/hs_err_pid*.log || true'
87
- // Note: do not run check task as it includes SpotBugs.
88
- sh " ./ci/test-with-asan.sh $gradleArgs $gitlabRepoArgs clean :tests:objectbox-java-test:test"
89
- }
90
- post {
91
- always {
92
- junit ' **/build/test-results/**/TEST-*.xml'
93
- archiveArtifacts artifacts : ' tests/*/hs_err_pid*.log' , allowEmptyArchive : true // Only on JVM crash.
94
- }
95
- }
96
- }
121
+ }
122
+ }
123
+ stage(" test-jdk-16" ) {
124
+ // Set agent to start with new workspace to avoid Gradle compile issues on shared workspace
125
+ agent {
126
+ label ' java'
127
+ }
128
+ environment {
129
+ TEST_JDK = " 16"
130
+ }
131
+ steps {
132
+ // "|| true" for an OK exit code if no file is found
133
+ sh ' rm tests/objectbox-java-test/hs_err_pid*.log || true'
134
+ // Note: do not run check task as it includes SpotBugs.
135
+ sh " ./ci/test-with-asan.sh $gradleArgs $gitlabRepoArgs clean :tests:objectbox-java-test:test"
136
+ }
137
+ post {
138
+ always {
139
+ junit ' **/build/test-results/**/TEST-*.xml'
140
+ archiveArtifacts artifacts : ' tests/*/hs_err_pid*.log' , allowEmptyArchive : true // Only on JVM crash.
97
141
}
98
142
}
99
143
}
0 commit comments