Fixing ignore-tags-newer-than inverted with ignore-tags-older-than.
Also fix test Scenario name. Story: 2004614 Task: 28518 Change-Id: I0d0f633ffa4d10f4d1491589dc9da69ae9d3f463
This commit is contained in:
parent
d741ea02c6
commit
429118b487
@ -1334,12 +1334,12 @@ def build_strategies(xml_parent, data):
|
||||
newer_than = -1
|
||||
if "ignore-tags-newer-than" in tags and tags["ignore-tags-newer-than"] >= 0:
|
||||
newer_than = str(tags["ignore-tags-newer-than"] * 86400000)
|
||||
XML.SubElement(tags_elem, "atMostMillis").text = str(newer_than)
|
||||
XML.SubElement(tags_elem, "atLeastMillis").text = str(newer_than)
|
||||
|
||||
older_than = -1
|
||||
if "ignore-tags-older-than" in tags and tags["ignore-tags-older-than"] >= 0:
|
||||
older_than = str(tags["ignore-tags-older-than"] * 86400000)
|
||||
XML.SubElement(tags_elem, "atLeastMillis").text = str(older_than)
|
||||
XML.SubElement(tags_elem, "atMostMillis").text = str(older_than)
|
||||
|
||||
if bbs_list.get("regular-branches", False):
|
||||
XML.SubElement(
|
||||
|
@ -21,7 +21,7 @@ from collections import namedtuple
|
||||
|
||||
|
||||
Scenario = namedtuple(
|
||||
"Scnenario", "name in_path out_paths error_path config_path plugins_info_path"
|
||||
"Scenario", "name in_path out_paths error_path config_path plugins_info_path"
|
||||
)
|
||||
|
||||
|
||||
|
@ -165,18 +165,18 @@
|
||||
<ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
|
||||
</jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
</strategies>
|
||||
</jenkins.branch.buildstrategies.basic.AnyBranchBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>86400000</atMostMillis>
|
||||
<atLeastMillis>604800000</atLeastMillis>
|
||||
<atLeastMillis>86400000</atLeastMillis>
|
||||
<atMostMillis>604800000</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<ignoreTargetOnlyChanges>true</ignoreTargetOnlyChanges>
|
||||
|
@ -165,18 +165,18 @@
|
||||
<ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
|
||||
</jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
</strategies>
|
||||
</jenkins.branch.buildstrategies.basic.AnyBranchBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>86400000</atMostMillis>
|
||||
<atLeastMillis>604800000</atLeastMillis>
|
||||
<atLeastMillis>86400000</atLeastMillis>
|
||||
<atMostMillis>604800000</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<ignoreTargetOnlyChanges>true</ignoreTargetOnlyChanges>
|
||||
|
@ -186,18 +186,18 @@
|
||||
<ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
|
||||
</jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
</strategies>
|
||||
</jenkins.branch.buildstrategies.basic.AnyBranchBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>86400000</atMostMillis>
|
||||
<atLeastMillis>604800000</atLeastMillis>
|
||||
<atLeastMillis>86400000</atLeastMillis>
|
||||
<atMostMillis>604800000</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<ignoreTargetOnlyChanges>true</ignoreTargetOnlyChanges>
|
||||
|
@ -137,18 +137,18 @@
|
||||
<ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
|
||||
</jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
</strategies>
|
||||
</jenkins.branch.buildstrategies.basic.AnyBranchBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>86400000</atMostMillis>
|
||||
<atLeastMillis>604800000</atLeastMillis>
|
||||
<atLeastMillis>86400000</atLeastMillis>
|
||||
<atMostMillis>604800000</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<ignoreTargetOnlyChanges>true</ignoreTargetOnlyChanges>
|
||||
|
@ -144,18 +144,18 @@
|
||||
<ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
|
||||
</jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
</strategies>
|
||||
</jenkins.branch.buildstrategies.basic.AnyBranchBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>86400000</atMostMillis>
|
||||
<atLeastMillis>604800000</atLeastMillis>
|
||||
<atLeastMillis>86400000</atLeastMillis>
|
||||
<atMostMillis>604800000</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<ignoreTargetOnlyChanges>true</ignoreTargetOnlyChanges>
|
||||
|
@ -200,18 +200,18 @@
|
||||
<ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
|
||||
</jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
</strategies>
|
||||
</jenkins.branch.buildstrategies.basic.AnyBranchBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>86400000</atMostMillis>
|
||||
<atLeastMillis>604800000</atLeastMillis>
|
||||
<atLeastMillis>86400000</atLeastMillis>
|
||||
<atMostMillis>604800000</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<ignoreTargetOnlyChanges>true</ignoreTargetOnlyChanges>
|
||||
|
@ -181,18 +181,18 @@
|
||||
<ignoreTargetOnlyChanges>false</ignoreTargetOnlyChanges>
|
||||
</jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
</strategies>
|
||||
</jenkins.branch.buildstrategies.basic.AnyBranchBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>86400000</atMostMillis>
|
||||
<atLeastMillis>604800000</atLeastMillis>
|
||||
<atLeastMillis>86400000</atLeastMillis>
|
||||
<atMostMillis>604800000</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
<atLeastMillis>-1</atLeastMillis>
|
||||
<atMostMillis>-1</atMostMillis>
|
||||
</jenkins.branch.buildstrategies.basic.TagBuildStrategyImpl>
|
||||
<jenkins.branch.buildstrategies.basic.ChangeRequestBuildStrategyImpl plugin="basic-branch-build-strategies">
|
||||
<ignoreTargetOnlyChanges>true</ignoreTargetOnlyChanges>
|
||||
|
Loading…
Reference in New Issue
Block a user