Merge "add tests for shell builder"

This commit is contained in:
Jenkins 2014-04-29 08:43:37 +00:00 committed by Gerrit Code Review
commit 2b2037d878
3 changed files with 13 additions and 4 deletions

View File

@ -50,12 +50,11 @@ def shell(parser, xml_parent, data):
"""yaml: shell
Execute a shell command.
:Parameter: the shell command to execute
:arg str parameter: the shell command to execute
Example::
Example:
builders:
- shell: "make test"
.. literalinclude:: /../../tests/builders/fixtures/shell.yaml
"""
shell = XML.SubElement(xml_parent, 'hudson.tasks.Shell')

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<builders>
<hudson.tasks.Shell>
<command>make test</command>
</hudson.tasks.Shell>
</builders>
</project>

View File

@ -0,0 +1,2 @@
builders:
- shell: "make test"