![Fathi Boudra](/assets/img/avatar_default.png)
'Publish over SSH' plugin is only supported in the publishers. It can also be used as a build step during the build process. Adjustments to publishers.base_publish_over() method: * fix the missing top delegate * re-order command, timeout and use-pty as in Jenkins Change-Id: Id45ef1b84b88213d8673f34597571ca56e3ff986 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
37 lines
1.7 KiB
XML
37 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<publishers>
|
|
<jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin>
|
|
<consolePrefix>SSH: </consolePrefix>
|
|
<delegate>
|
|
<publishers>
|
|
<jenkins.plugins.publish__over__ssh.BapSshPublisher>
|
|
<configName>server.example.com</configName>
|
|
<verbose>true</verbose>
|
|
<transfers>
|
|
<jenkins.plugins.publish__over__ssh.BapSshTransfer>
|
|
<remoteDirectory>dest/dir</remoteDirectory>
|
|
<sourceFiles>base/source/dir/**</sourceFiles>
|
|
<excludes>**/*.excludedfiletype</excludes>
|
|
<removePrefix>base/source/dir</removePrefix>
|
|
<remoteDirectorySDF>false</remoteDirectorySDF>
|
|
<flatten>true</flatten>
|
|
<cleanRemote>false</cleanRemote>
|
|
<execCommand>rm -r jenkins_$BUILD_NUMBER</execCommand>
|
|
<execTimeout>1800000</execTimeout>
|
|
<usePty>true</usePty>
|
|
</jenkins.plugins.publish__over__ssh.BapSshTransfer>
|
|
</transfers>
|
|
<useWorkspaceInPromotion>false</useWorkspaceInPromotion>
|
|
<usePromotionTimestamp>false</usePromotionTimestamp>
|
|
</jenkins.plugins.publish__over__ssh.BapSshPublisher>
|
|
</publishers>
|
|
<continueOnError>false</continueOnError>
|
|
<failOnError>false</failOnError>
|
|
<alwaysPublishFromMaster>false</alwaysPublishFromMaster>
|
|
<hostConfigurationAccess class="jenkins.plugins.publish_over_ssh.BapSshPublisherPlugin" reference="../.."/>
|
|
</delegate>
|
|
</jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin>
|
|
</publishers>
|
|
</project>
|