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

Jenking not able to build project resides on Virtual Drive

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      I am not able to build the Virtual drive Project via Jenkin.

      Step:-
      1. I have created the virtual drive named X by running the below batch file.
      subst X: D:\SVN_ABC\Test

      2. Then I create the free style project in Jenkin & add the MSbuild task in it

      I then specified the project file path with the X drive, please see below:-

      MSBuild Build File: X:\SourceLib\SourceLib\SourceLib.csproj
      Command Line Arguments : /p:Configuration=Release

      When I run the jenkin Job, then I am getting error that the Project file does not exist.
      If I change the Project file path from virtual to some physical path then I am able to run the job successfully. Jenkin not able to understand the X drive. How would I make jenkin learn about the X drive.

      I want to run the jenkin job relative to Virtual drive path(X drive path in my case) instead of physical drive path.

      I read many article on this & tried many step but no success, Can you please suggest & give some direction on this issue.

      Kindly reply here or write me directly at my email id dinesh.k@niit-tech.com would be highly appreciated.

      Thanks,
      Dinesh

        Attachments

          Activity

          Hide
          marshall777 Lionel Cabasson added a comment -

          Dinesh Kumar Could you please give some update about this problem ?

          Show
          marshall777 Lionel Cabasson added a comment - Dinesh Kumar Could you please give some update about this problem ?
          Hide
          marshall777 Lionel Cabasson added a comment - - edited

          Have you checked that the virtual drive is visible for the user Jenkins is running as ?
          You could create a simple "run windows batch command" step with content like below and see if it works.

          x:
          dir
          

          If creating the virtual drive is part of your build process, I would add a step to run the subst command before running msbuild.
          If it is not, you may have to run subst manually from the user Jenkins is running as.

          Show
          marshall777 Lionel Cabasson added a comment - - edited Have you checked that the virtual drive is visible for the user Jenkins is running as ? You could create a simple "run windows batch command" step with content like below and see if it works. x: dir If creating the virtual drive is part of your build process, I would add a step to run the subst command before running msbuild. If it is not, you may have to run subst manually from the user Jenkins is running as.
          Hide
          dinesh588 Dinesh Kumar added a comment -

          any suggestion or input would be highly appreciated

          Show
          dinesh588 Dinesh Kumar added a comment - any suggestion or input would be highly appreciated

            People

            Assignee:
            marshall777 Lionel Cabasson
            Reporter:
            dinesh588 Dinesh Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: