Can someone help me create groovy script that add post-build action to multiple jobs at the same time?
Post-Build I am trying to add is the "re-try build after" set to 3 times if job is unstable or fails. looks like below from the config.xml
I am new to groovy script and not able to get it working..
Thank you
</builders>
<publishers>
<com.chikli.hudson.plugin.naginator.NaginatorPublisher plugin="naginator@1.18.1">
<regexpForRerun/>
<rerunIfUnstable>true</rerunIfUnstable>
<rerunMatrixPart>false</rerunMatrixPart>
<checkRegexp>false</checkRegexp>
<regexpForMatrixStrategy>TestParent</regexpForMatrixStrategy>
<maxSchedule>3</maxSchedule>
</com.chikli.hudson.plugin.naginator.NaginatorPublisher>
</publishers>
<buildWrappers/>