Merge "Publish Over SSH Plugin option added"
This commit is contained in:
commit
a77fe9c75c
@ -983,6 +983,7 @@ def ssh(parser, xml_parent, data):
|
|||||||
:arg str source: source path specifier
|
:arg str source: source path specifier
|
||||||
:arg str command: a command to execute on the remote server (optional)
|
:arg str command: a command to execute on the remote server (optional)
|
||||||
:arg int timeout: timeout in milliseconds for the Exec command (optional)
|
:arg int timeout: timeout in milliseconds for the Exec command (optional)
|
||||||
|
:arg bool use-pty: run the exec command in pseudo TTY (defaults to False)
|
||||||
:arg str excludes: excluded file pattern (optional)
|
:arg str excludes: excluded file pattern (optional)
|
||||||
:arg str remove-prefix: prefix to remove from uploaded file paths
|
:arg str remove-prefix: prefix to remove from uploaded file paths
|
||||||
(optional)
|
(optional)
|
||||||
@ -998,6 +999,7 @@ def ssh(parser, xml_parent, data):
|
|||||||
source: 'base/source/dir/**'
|
source: 'base/source/dir/**'
|
||||||
remove-prefix: 'base/source/dir'
|
remove-prefix: 'base/source/dir'
|
||||||
excludes: '**/*.excludedfiletype'
|
excludes: '**/*.excludedfiletype'
|
||||||
|
use-pty: true
|
||||||
command: 'rm -r jenkins_$BUILD_NUMBER'
|
command: 'rm -r jenkins_$BUILD_NUMBER'
|
||||||
timeout: 1800000
|
timeout: 1800000
|
||||||
"""
|
"""
|
||||||
@ -1444,6 +1446,9 @@ def base_publish_over(xml_parent, data, console_prefix,
|
|||||||
XML.SubElement(transfersset, 'execCommand').text = data['command']
|
XML.SubElement(transfersset, 'execCommand').text = data['command']
|
||||||
if 'timeout' in data:
|
if 'timeout' in data:
|
||||||
XML.SubElement(transfersset, 'execTimeout').text = str(data['timeout'])
|
XML.SubElement(transfersset, 'execTimeout').text = str(data['timeout'])
|
||||||
|
if 'use-pty' in data:
|
||||||
|
XML.SubElement(transfersset, 'usePty').text = \
|
||||||
|
str(data.get('use-pty', False)).lower()
|
||||||
XML.SubElement(transfersset, 'excludes').text = data.get('excludes', '')
|
XML.SubElement(transfersset, 'excludes').text = data.get('excludes', '')
|
||||||
XML.SubElement(transfersset, 'removePrefix').text = \
|
XML.SubElement(transfersset, 'removePrefix').text = \
|
||||||
data.get('remove-prefix', '')
|
data.get('remove-prefix', '')
|
||||||
|
Loading…
Reference in New Issue
Block a user