File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ node {
170
170
])
171
171
}
172
172
173
- if (env. BRANCH_NAME == ' jenkins_stress ' ) {
173
+ if (env. BRANCH_NAME == ' jenkins_stress_NOT_NOW ' ) {
174
174
sh ''' #!/bin/bash
175
175
176
176
# get crumb for CSRF
@@ -179,13 +179,12 @@ node {
179
179
180
180
N=5
181
181
FIRST_RUN=$(curl --cookie $COOKIE_JAR -H "$CRUMB" https://jenkins.comma.life/job/openpilot/job/__jenkins_stress/api/json | jq .nextBuildNumber)
182
- echo "FIRST RUN IS : $FIRST_RUN"
183
182
LAST_RUN=$((FIRST_RUN+N))
184
183
185
184
for i in $(seq $FIRST_RUN $LAST_RUN);
186
185
do
187
186
# start build i
188
- curl --cookie $COOKIE_JAR -H "$CRUMB" -X POST https://jenkins.comma.life/job/openpilot/job/__jenkins_stress/build?delay=0sec
187
+ curl --output /dev/null -- cookie $COOKIE_JAR -H "$CRUMB" -X POST https://jenkins.comma.life/job/openpilot/job/__jenkins_stress/build?delay=0sec
189
188
done
190
189
191
190
while true; do
@@ -210,23 +209,20 @@ node {
210
209
211
210
RESULT=$(echo $JSON | jq .result)
212
211
((count++))
212
+ echo "build $i $RESULT"
213
213
214
214
if [[ $RESULT == '"SUCCESS"' ]]; then
215
- echo "build $i success"
216
215
PASS+=($i)
217
216
elif [[ $RESULT == '"FAILURE"' ]]; then
218
- echo "build $i fail"
219
217
FAIL+=($i)
220
218
elif [[ $RESULT == '"ABORTED"' ]]; then
221
- echo "build $i abort"
222
219
FAIL+=($i)
223
220
else
224
- echo "build $i $RESULT"
225
221
FAIL+=($i)
226
222
fi
227
223
228
224
else
229
- echo "Error getting build $i"
225
+ echo "Error getting status of build $i"
230
226
fi
231
227
232
228
done
You can’t perform that action at this time.
0 commit comments