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

File System SCM should allow passing of build parameters

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • filesystem_scm-plugin
    • None
    • Jenkins ver. 2.150.2
      File System SCM

    Description

      It should be possible to dynamically set the path of the File system SCM by passing the value of a build parameter.

      For the moment, following exception is thrown ($SERVICE contains the value of a choice parameter)

      Building in workspace /Volumes/Data/dwamara/.jenkins/workspace/inzo24-2-docker-build-2
      FSSCM.checkout /Volumes/Work/projets/inzo24/$SERVICE to /Volumes/Data/dwamara/.jenkins/workspace/inzo24-2-docker-build-2
      FATAL: Parameter 'directory' is not a directory
      java.lang.IllegalArgumentException: Parameter 'directory' is not a directory
      at org.apache.commons.io.FileUtils.validateListFilesParameters(FileUtils.java:545)
      at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:521)
      at org.apache.commons.io.FileUtils.iterateFiles(FileUtils.java:628)
      at hudson.plugins.filesystem_scm.FolderDiff.getNewOrModifiedFiles(FolderDiff.java:130)
      at hudson.plugins.filesystem_scm.RemoteFolderDiff$CheckOut.invoke(RemoteFolderDiff.java:95)
      at hudson.plugins.filesystem_scm.RemoteFolderDiff$CheckOut.invoke(RemoteFolderDiff.java:88)
      at hudson.FilePath.act(FilePath.java:1078)
      at hudson.FilePath.act(FilePath.java:1061)
      at hudson.plugins.filesystem_scm.FSSCM.checkout(FSSCM.java:215)
      at hudson.scm.SCM.checkout(SCM.java:504)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      at hudson.model.Run.execute(Run.java:1810)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILUREĀ 

      Attachments

        Issue Links

          Activity

            There are no comments yet on this issue.

            People

              Unassigned Unassigned
              dwamara Daniel Wamara
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: