[JIRA] (JENKINS-41318) Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script
Title: Message Title Makarand Jadhav updated an issue Jenkins / JENKINS-41318 Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script Change By: Makarand Jadhav I am using the below groovy DSL script for populating the "publish__over__cifs"(v0.3) in the Build step for sending files to Windows Share from a Linux jenkins(v1.640) server from a seed job. The code seems to generate the "Publish Over CIFS" plugin in the job but the values(highlighted in Red color below) set in the Groovy script does not seem to get populated after the plugin is generated from the groovy script & JobDSL plugin(v1.45):job(' test3_app test3_ccms ') {logRotator(-1, 10)jdk(' JDK7 IBMJDK7 ')scm {}triggers { }steps {gradle('clean build')}//steps { configure { project ->// Configure Publish over CIFS // project / publishers / ' jenkins.plugins.publish__over__cifs.CifsBuilderPlugin'(plugin: 'publish-over-cifs@0.3') {project / ' builders' / 'jenkins.plugins.publish__over__cifs.CifsBuilderPlugin'(plugin =" : ' publish-over-cifs@0.3 " ' ) { // delegate.publishers { publishers { consolePrefix('CIFS:') // delegate.publishers {// 'jenkins.plugins.publish__over__cifs.CifsPublisher' { 'jenkins.plugins.publish__over__cifs.CifsPublisher' { Name('{ color:red} Name(' APP_Share_dev ') {color} ') verbose('true') useWorkspaceInPromotion(false) usePromotionTimestamp(false) transfers { 'jenkins.plugins.publish__over__cifs.CifsTransfer' { sourceFiles(' {color:red} sourceFiles(' app.ear ') {color} ') excludes('') remoteDirectory(" {color:red} remoteDirectory(" app\\ ws was \\ear ") {color} ") removePrefix('') remoteDirectorySDF(false) flatten(false) {color:red} cleanRemote(true) {color} noDefaultExcludes(false) {color:red} makeEmptyDirs(true) {color} patternSeparator('[, ]+') } } }// } continueOnError('false') failOnError(' {color:red} failOnError(' true ') {color} ') alwaysPublishFromMaster('false') } } } // } } Am I missing something here? Please let me know if the above implementation is correct in the Groovy Script.
[JIRA] (JENKINS-41318) Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script
Title: Message Title Makarand Jadhav commented on JENKINS-41318 Re: Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script Note that the jenkins Global Configuration has the CIFS Share APP_Share_dev configured & it connects using the credentials successfully Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-41318) Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script
Title: Message Title Makarand Jadhav created an issue Jenkins / JENKINS-41318 Publisher Over CIFS(CifsBuilderPlugin) seems not to be working when configuring the plugin using groovy DSL script Issue Type: Bug Assignee: bap Components: publish-over-cifs-plugin Created: 2017/Jan/23 10:40 AM Priority: Major Reporter: Makarand Jadhav I am using the below groovy DSL script for populating the "publish_over_cifs"(v0.3) in the Build step for sending files to Windows Share from a Linux jenkins(v1.640) server from a seed job. The code seems to generate the "Publish Over CIFS" plugin in the job but the values(highlighted in Red color below) set in the Groovy script does not seem to get populated after the plugin is generated from the groovy script & JobDSL plugin(v1.45): job('test3_app') { logRotator(-1, 10) jdk('JDK7') scm { } triggers { } steps { gradle('clean build') } //steps { configure { project -> // Configure Publish over CIFS project / 'builders' / 'jenkins.plugins.publish_over_cifs.CifsBuilderPlugin'(plugin="publish-over-cifs@0.3") { delegate.publishers { consolePrefix('CIFS:') 'jenkins.plugins.publish_over_cifs.CifsPublisher' { Name('APP_Share_dev') verbose('true') useWorkspaceInPromotion(false) usePromotionTimestamp(false) transfers { 'jenkins.plugins.publish_over_cifs.CifsTransfer' { sourceFiles('app.ear') excludes('') remoteDirectory("app\\wsear") removePrefix('') remoteDirectorySDF(false) flatten(false) cleanRemote(true) noDefaultExcludes(false) makeEmptyDirs(true) patternSeparator('[, ]+') } } continueOnError('false') failOnError('true') alwaysPublishFromMaster('false') } } } } Am I missing something here? Please let me know if the above implementation is correct in the Groovy Script.