Adds support rerun matrix part to the naginator

Change-Id: I125d6966100b098ad3a49bd404d2f79c7b7471a1
Signed-off-by: Tomas Turek <osmman@gmail.com>
This commit is contained in:
Tomas Turek 2016-06-17 10:48:11 +02:00 committed by Darragh Bailey
parent fc73cedb45
commit c7bc72b7a2
5 changed files with 8 additions and 0 deletions

View File

@ -5313,6 +5313,8 @@ def naginator(parser, xml_parent, data):
:arg bool rerun-unstable-builds: Rerun build for unstable builds as well
as failures (default false)
:arg bool rerun-matrix-part: Rerun build only for failed parts on the
matrix (>=1.12) (default false)
:arg int fixed-delay: Fixed delay before retrying build (cannot be used
with progressive-delay-increment or progressive-delay-maximum.
This is the default delay type. (default 0)
@ -5341,6 +5343,8 @@ def naginator(parser, xml_parent, data):
'regular-expression' in data).lower()
XML.SubElement(naginator, 'rerunIfUnstable').text = str(
data.get('rerun-unstable-builds', False)).lower()
XML.SubElement(naginator, 'rerunMatrixPart').text = str(
data.get('rerun-matrix-part', False)).lower()
progressive_delay = ('progressive-delay-increment' in data or
'progressive-delay-maximum' in data)
if 'fixed-delay' in data and progressive_delay:

View File

@ -5,6 +5,7 @@
<regexpForRerun>foo</regexpForRerun>
<checkRegexp>true</checkRegexp>
<rerunIfUnstable>true</rerunIfUnstable>
<rerunMatrixPart>true</rerunMatrixPart>
<delay class="com.chikli.hudson.plugin.naginator.ProgressiveDelay">
<increment>5</increment>
<max>15</max>

View File

@ -1,6 +1,7 @@
publishers:
- naginator:
rerun-unstable-builds: true
rerun-matrix-part: true
progressive-delay-increment: 5
progressive-delay-maximum: 15
max-failed-builds: 6

View File

@ -5,6 +5,7 @@
<regexpForRerun/>
<checkRegexp>false</checkRegexp>
<rerunIfUnstable>false</rerunIfUnstable>
<rerunMatrixPart>false</rerunMatrixPart>
<delay class="com.chikli.hudson.plugin.naginator.FixedDelay">
<delay>0</delay>
</delay>

View File

@ -5,6 +5,7 @@
<regexpForRerun/>
<checkRegexp>false</checkRegexp>
<rerunIfUnstable>false</rerunIfUnstable>
<rerunMatrixPart>false</rerunMatrixPart>
<delay class="com.chikli.hudson.plugin.naginator.FixedDelay">
<delay>30</delay>
</delay>