Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50024

Cannot run CIFs plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • job-dsl-plugin
    • None
    • Jenkins 2.110
      Job DLS 1.68
      Publish over CIFS 0.9

      I'm trying to build DSL to run this plugin. However, when I run this:

      cifsPublisher {
                                      continueOnError(false)
                                      failOnError(true)
                                      alwaysPublishFromMaster(false)
                                      masterNodeName('master')
                                      publishers {
                                          cifsPublisher {
                                              configName('nl1fs02.mydomain.com')
                                              verbose(false)
                                              useWorkspaceInPromotion(false)
                                              usePromotionTimestamp(false)
                                              retry {
                                                  retries(5)
                                                  retryDelay(15)
                                              }
                                              label {
                                                  label('Publishing to nl1fs02')
                                              }
                                              transfers {
                                                  cifsTransfer {
                                                      sourceFiles('**/build/**')
                                                      excludes('')
                                                      remoteDirectory('$RELEASE_VERSION')
                                                      removePrefix('build')
                                                      remoteDirectorySDF(false)
                                                      flatten(false)
                                                      cleanRemote(true)
                                                      noDefaultExcludes(false)
                                                      makeEmptyDirs(true)
                                                      patternSeparator('[, ]+')
                                                  }
                                              }
                                          }
                                      }
                                  }
      

      I get this error:

      Expected no exception to be thrown, but got 'javaposse.jobdsl.dsl.DslScriptException'
      	at spock.lang.Specification.noExceptionThrown(Specification.java:119)
      	at com.sdl.web.delivery.jenkins.JobScriptsSpec.test script #file.name(JobScriptsSpec.groovy:46)
      Caused by: javaposse.jobdsl.dsl.DslScriptException: (SdlWebDeliveryJenkinsJobCreator.groovy, line 973) No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.cifsPublisher() is applicable for argument types: (com.sdl.web.delivery.jenkins.SdlWebDeliveryJenkinsJobCreator$_createJobs_closure5$_closure11$_closure13$_closure14$_closure23$_closure66) values: [com.sdl.web.delivery.jenkins.SdlWebDeliveryJenkinsJobCreator$_createJobs_closure5$_closure11$_closure13$_closure14$_closure23$_closure66@37990785]
      	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScriptEngine(AbstractDslScriptLoader.groovy:112)
      	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScripts_closure1(AbstractDslScriptLoader.groovy:59)
      	at groovy.lang.Closure.call(Closure.java:418)
      	at groovy.lang.Closure.call(Closure.java:434)
      	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScripts(AbstractDslScriptLoader.groovy:46)
      	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScript(AbstractDslScriptLoader.groovy:85)
      	at com.sdl.web.delivery.jenkins.JobScriptsSpec.test script #file.name(JobScriptsSpec.groovy:42)
      Caused by: groovy.lang.MissingMethodException: No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.cifsPublisher() is applicable for argument types: (com.sdl.web.delivery.jenkins.SdlWebDeliveryJenkinsJobCreator$_createJobs_closure5$_closure11$_closure13$_closure14$_closure23$_closure66) values: [com.sdl.web.delivery.jenkins.SdlWebDeliveryJenkinsJobCreator$_createJobs_closure5$_closure11$_closure13$_closure14$_closure23$_closure66@37990785]
      	at javaposse.jobdsl.dsl.AbstractExtensibleContext.methodMissing(AbstractExtensibleContext.groovy:19)
      

      Thanks

            daspilker Daniel Spilker
            bengineer Ben Middleton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: