Skip to content

Commit

Permalink
LRCI-3372 Allow ci.retries.disabled to disable batch retries
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjiheigel authored and brianchandotcom committed Dec 16, 2022
1 parent 0d1a12e commit 753c89d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build-test-batch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1618,8 +1618,15 @@ app.server.type=@{app.server.type}]]></echo>

<property name="functional.test.type" value="@{functional.test.type}" />

<get-testcase-property property.name="ci.retries.disabled" />

<condition else="0" property="functional.batch.retry.count" value="1">
<matches pattern="^[\w\.]+#[\w]+$" string="${test.class}" />
<and>
<matches pattern="^[\w\.]+#[\w]+$" string="${test.class}" />
<not>
<equals arg1="${ci.retries.disabled}" arg2="true" />
</not>
</and>
</condition>

<retry retrycount="${functional.batch.retry.count}">
Expand Down

0 comments on commit 753c89d

Please sign in to comment.