Merge "BugFix: pollscm trigger docs & unittests"
This commit is contained in:
commit
d2b1ab8a87
@ -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')
|
||||
|
8
tests/triggers/fixtures/pollscm001.xml
Normal file
8
tests/triggers/fixtures/pollscm001.xml
Normal 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>
|
2
tests/triggers/fixtures/pollscm001.yaml
Normal file
2
tests/triggers/fixtures/pollscm001.yaml
Normal file
@ -0,0 +1,2 @@
|
||||
triggers:
|
||||
- pollscm: "*/15 * * * *"
|
Loading…
Reference in New Issue
Block a user