Merge "BugFix: pollscm trigger docs & unittests"

This commit is contained in:
Jenkins 2015-02-22 03:22:07 +00:00 committed by Gerrit Code Review
commit d2b1ab8a87
3 changed files with 14 additions and 4 deletions

View File

@ -506,12 +506,12 @@ def pollscm(parser, xml_parent, data):
"""yaml: pollscm
Poll the SCM to determine if there has been a change.
:Parameter: the polling interval (cron syntax)
:arg string pollscm: the polling interval (cron syntax)
Example::
Example:
triggers:
- pollscm: "\*/15 * * * \*"
.. literalinclude:: /../../tests/triggers/fixtures/pollscm001.yaml
:language: yaml
"""
scmtrig = XML.SubElement(xml_parent, 'hudson.triggers.SCMTrigger')

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<triggers class="vector">
<hudson.triggers.SCMTrigger>
<spec>*/15 * * * *</spec>
</hudson.triggers.SCMTrigger>
</triggers>
</project>

View File

@ -0,0 +1,2 @@
triggers:
- pollscm: "*/15 * * * *"