Another thing to keep in mind is to keep your scripts and build simple so that they modify local artefacts and then use a plugin to copy/publish the artefacts where you want them.
On 3 July 2014 22:41, Slide <slide.o....@gmail.com> wrote: > Yes, the service will be running as the local service account which > usually has access to nothing. You can edit the service configuration to > login as a user that has the access to the UNC path. > > > On Thu, Jul 3, 2014 at 12:32 PM, <funeeld...@gmail.com> wrote: > >> I am running the job as a user who has access. is that different than >> the user running jenkins? >> >> >> On Thursday, July 3, 2014 12:23:38 PM UTC-4, slide wrote: >> >>> Or, if you don't mind the security implications, you could run Jenkins >>> as a user that has access... >>> >>> >>> On Thu, Jul 3, 2014 at 8:21 AM, Les Mikesell <lesmi...@gmail.com> wrote: >>> >>>> On Thu, Jul 3, 2014 at 9:31 AM, <funee...@gmail.com> wrote: >>>> > >>>> > >>>> > We run our build.bat on a windows box. We are moving this into >>>> jenkins. One of the command line args is a UNC pathname. The batch script >>>> works fine on the windows machine in a cmd window. When I execute the same >>>> command in jenkins batch script, it cannot see the unc path somehow. The >>>> batch script has the following command which fails when it is run in >>>> jenkins: >>>> > >>>> > @rem Test if staging area exists. @set BuildResultsDir=%4 @if not >>>> exist "%BuildResultsDir%" ( >>>> > @echo. >>>> > @echo. -ERROR- Arg4 StagingArea "%BuildResultsDir%" does not exist. >>>> > @echo. >>>> > @goto:eof ) >>>> > >>>> > The error message in the log is: M:>setlocal enabledelayedexpansion >>>> > >>>> > -ERROR- Arg4 StagingArea "\wesrdbb5\Reef7.2Sust\Nightly_Build\CM03Build" >>>> does not exist. >>>> > >>>> > I tried changing %BuildResultsDir% to !BuildResultsDir! with no >>>> success.. any advice is welcome. >>>> >>>> UNC paths work in general, but jenkins will be running as a different >>>> user that probably doesn't have access. I've only used read-only >>>> shares that permit guest access to avoid dealing with the quirks of >>>> windows network authentication. >>>> >>>> -- >>>> Les Mikesell >>>> lesmi...@gmail.com >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Jenkins Users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to jenkinsci-use...@googlegroups.com. >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Website: http://earl-of-code.com >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jenkinsci-users+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Website: http://earl-of-code.com > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.