<jenkins.plugins.publish__over__cifs.CifsPublisherPlugin plugin="publish-over-cifs@0.3">
<consolePrefix>CIFS:</consolePrefix>
<delegate>
<publishers>
<jenkins.plugins.publish__over__cifs.CifsPublisher>
<configName>Some Network Share</configName>
<verbose>false</verbose>
<transfers>
<jenkins.plugins.publish__over__cifs.CifsTransfer>
<remoteDirectory>${JOB_BASE_NAME}</remoteDirectory>
<sourceFiles>app/bin/Release/**</sourceFiles>
<excludes>**/*.pdb **/*.vshost.ex* *.xml</excludes>
<removePrefix>app/bin/Release</removePrefix>
<remoteDirectorySDF>false</remoteDirectorySDF>
<flatten>false</flatten>
<cleanRemote>true</cleanRemote>
<noDefaultExcludes>false</noDefaultExcludes>
<makeEmptyDirs>false</makeEmptyDirs>
<patternSeparator>[, ]+</patternSeparator>
</jenkins.plugins.publish__over__cifs.CifsTransfer>
</transfers>
<useWorkspaceInPromotion>false</useWorkspaceInPromotion>
<usePromotionTimestamp>false</usePromotionTimestamp>
</jenkins.plugins.publish__over__cifs.CifsPublisher>
</publishers>
<continueOnError>false</continueOnError>
<failOnError>false</failOnError>
<alwaysPublishFromMaster>false</alwaysPublishFromMaster>
<hostConfigurationAccess class="jenkins.plugins.publish_over_cifs.CifsPublisherPlugin" reference="../.." />
</delegate>
</jenkins.plugins.publish__over__cifs.CifsPublisherPlugin>freeStyleJob('Utility Name') {
configure { project ->
// Configure Publish over CIFS
project / publishers / 'jenkins.plugins.publish__over__cifs.CifsPublisherPlugin'(plugin: 'publish-over-cifs@0.3') {
consolePrefix 'CIFS:'
delegate {
continueOnError 'false'
failOnError 'false'
alwaysPublishFromMaster 'false'
publishers {
'jenkins.plugins.publish__over__cifs.CifsPublisher' {
configName 'Some Network Share'
verbose 'false'
useWorkspaceInPromotion 'false'
}
}
}
}
}
}Does it work with delegate.publishers ? Notice that is not the "delegate" XML node, but the Groovy closure delegate used to avoid collision with outer scope.
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/d20872ba-8267-464e-aca2-aadc44572a9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Fiouz