Skip to content

Commit fde1ff2

Browse files
also this
1 parent 4ad1d7a commit fde1ff2

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Jenkinsfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ node {
170170
])
171171
}
172172

173-
if (env.BRANCH_NAME == 'jenkins_stress') {
173+
if (env.BRANCH_NAME == 'jenkins_stress_NOT_NOW') {
174174
sh '''#!/bin/bash
175175
176176
# get crumb for CSRF
@@ -179,13 +179,12 @@ node {
179179
180180
N=5
181181
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"
183182
LAST_RUN=$((FIRST_RUN+N))
184183
185184
for i in $(seq $FIRST_RUN $LAST_RUN);
186185
do
187186
# 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
189188
done
190189
191190
while true; do
@@ -210,23 +209,20 @@ node {
210209
211210
RESULT=$(echo $JSON | jq .result)
212211
((count++))
212+
echo "build $i $RESULT"
213213
214214
if [[ $RESULT == '"SUCCESS"' ]]; then
215-
echo "build $i success"
216215
PASS+=($i)
217216
elif [[ $RESULT == '"FAILURE"' ]]; then
218-
echo "build $i fail"
219217
FAIL+=($i)
220218
elif [[ $RESULT == '"ABORTED"' ]]; then
221-
echo "build $i abort"
222219
FAIL+=($i)
223220
else
224-
echo "build $i $RESULT"
225221
FAIL+=($i)
226222
fi
227223
228224
else
229-
echo "Error getting build $i"
225+
echo "Error getting status of build $i"
230226
fi
231227
232228
done

0 commit comments

Comments
 (0)