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

File System SCM issue

XMLWordPrintable

      Hello,

      I have tried configuring the File System SCM Plugin and hit into the below error. Not sure, what is wrong and wanted to confirm whether this is a bug. I am just trying to use File System SCM Plugin for a simple Maven Build Project and here is how my project tree looks like and under File System, I have given the path as "/root/jdappone". 

      [root@jenkins ~]# tree jdappone/
      jdappone/
      ├── pom.xml
      ├── README.md
      └── src
       ├── main
       │   └── java
       │   └── com
       │   └── pratik
       │   └── mavensample
       │   └── App.java
       └── test
       └── java
       └── com
       └── pratik
       └── mavensample
       └── AppTest.java
      11 directories, 4 files
      

       Finally clicking on Build now gives me the below error message.

      Additional Details:
      This reported issue has been tested against the following version.

      Jenkins ver. 2.107.3
      File System SCM Plugin 2.1

      Building in workspace /var/lib/jenkins/workspace/FSSCM
      FSSCM.checkout /root/jdappone to /var/lib/jenkins/workspace/FSSCM
      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:1020)
      at hudson.FilePath.act(FilePath.java:998)
      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:1727)
      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

            oleg_nenashev Oleg Nenashev
            gknathkumar Gokulnath Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: