SCM Sync configuration plugin causes errors when Home directory != Workspace Root Directory

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major
    • None
    • Environment:
      It's fails both Linux and windows

      SCM Sync configuration plugin causes errors when Home directory != Workspace Root Directory.
      For example at windows I have:
      Home directory C:\Program Files (x86)\Jenkins
      Workspace Root Directory C:/Jenkins/${ITEM_FULLNAME}/workspace
      When the plugin is enabled and I wont to Edit Build Information I get error:
      Exception: java.lang.IllegalArgumentException: Err ! File [C:\Jenkins\Farm Monitor\builds\2013-05-22_11-52-09\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] !
      Stacktrace:

      javax.servlet.ServletException: java.lang.IllegalArgumentException: Err ! File [C:\Jenkins\Farm Monitor\builds\2013-05-22_11-52-09\build.xml] seems not to reside in [C:\Program Files (x86)\Jenkins] !
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770)
      at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:384)
      .....

      It looks like Jenkins was looking for files at $Home directory instead off Workspace Root Directory. The error occurs but the build information stays. It also occurs in other places when I'm writing a comment. Today i wasn't able to run build because in the middle of Clear Case operations I've got the error. The solution to fix this it either to disable/remove SCM plugin or Install Jenkins in the same directory as Workspace Root Directory.

            Assignee:
            Frédéric Camblor
            Reporter:
            Piotr Kral
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: