msbuild - TFS will not execute NuGet script -


so got hands on tfs, build small app tests (nunit) , wanted let tfs build me. however, build fails when tries use nuget:

****************************************************************************** starting: build ****************************************************************************** executing following commandline: c:\users\rab\desktop\buildagent\agent\worker\vsoworker.exe  /name:worker-6726df74-da4c-466a-b1c6-1f2b78b88a8d /id:6726df74-da4c-466a-b1c6-1f2b78b88a8d /rootfolder:"c:\users\rab\desktop\buildagent" /logger:forwarding,1.0.0;verbosity=verbose,name=agent4-bbf8df0bd72035f895b9972ec79f2bcb;jobid=6726df74-da4c-466a-b1c6-1f2b78b88a8d ****************************************************************************** starting: sources ****************************************************************************** syncing repository: rabs git test (git) starting fetch... checking out 1f6c87dfd38578b9d0f365f83a92fc4ef9bc172e c:\users\rab\desktop\buildagent\_work\1\s checked out branch refs/heads/master repository rabs git test @ commit 1f6c87dfd38578b9d0f365f83a92fc4ef9bc172e ****************************************************************************** running tasks ****************************************************************************** ****************************************************************************** starting task: nuget restore gitdemoproject.sln ****************************************************************************** set workingfolder default: c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18 executing powershell script: c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\nugetinstaller.ps1 attempting perform normalizerelativepath operation on 'filesystem' provider failed path 'c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18'. access denied ****************************************************************************** finishing task: nugetinstaller ****************************************************************************** ****************************************************************************** starting task: copy files to: $(build.artifactstagingdirectory) ****************************************************************************** set workingfolder default: c:\users\rab\desktop\buildagent\tasks\copyfiles\1.0.13 fs.js:887   return binding.lstat(pathmodule._makelong(path));                  ^ error: eperm: operation not permitted, lstat 'c:\users\rab'     @ error (native)     @ object.fs.lstatsync (fs.js:887:18)     @ object.realpathsync (fs.js:1518:21)     @ torealpath (module.js:126:13)     @ function.module._findpath (module.js:165:20)     @ function.module._resolvefilename (module.js:337:25)     @ function.module._load (module.js:290:25)     @ function.module.runmain (module.js:447:10)     @ startup (node.js:146:18)     @ node.js:404:3 ****************************************************************************** finishing task: copyfiles ****************************************************************************** ****************************************************************************** starting task: publish artifact: drop ****************************************************************************** set workingfolder default: c:\users\rab\desktop\buildagent\tasks\publishbuildartifacts\1.0.28 fs.js:887   return binding.lstat(pathmodule._makelong(path));                  ^ error: eperm: operation not permitted, lstat 'c:\users\rab'     @ error (native)     @ object.fs.lstatsync (fs.js:887:18)     @ object.realpathsync (fs.js:1518:21)     @ torealpath (module.js:126:13)     @ function.module._findpath (module.js:165:20)     @ function.module._resolvefilename (module.js:337:25)     @ function.module._load (module.js:290:25)     @ function.module.runmain (module.js:447:10)     @ startup (node.js:146:18)     @ node.js:404:3 ****************************************************************************** finishing task: publishbuildartifacts ****************************************************************************** task nugetinstaller failed. caused job fail. @ logs task more details. ****************************************************************************** finishing build ****************************************************************************** 

it line attempting perform normalizerelativepath operation on 'filesystem' provider failed path 'c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18'. access denied gives first blow. tried run that, gave lot of errors well:

ps c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18> .\nugetinstaller.ps1 import-module : specified module 'microsoft.teamfoundation.distributedtask.task.internal' not loaded because no  valid module file found in module directory. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\nugetinstaller.ps1:12 char:1 + import-module "microsoft.teamfoundation.distributedtask.task.internal" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : resourceunavailable: (microsoft.teamf...k.task.internal:string) [import-module], filenot    foundexception     + fullyqualifiederrorid : modules_modulenotfound,microsoft.powershell.commands.importmodulecommand  import-module : specified module 'microsoft.teamfoundation.distributedtask.task.common' not loaded because no v alid module file found in module directory. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\nugetinstaller.ps1:13 char:1 + import-module "microsoft.teamfoundation.distributedtask.task.common" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : resourceunavailable: (microsoft.teamf...ask.task.common:string) [import-module], filenot    foundexception     + fullyqualifiederrorid : modules_modulenotfound,microsoft.powershell.commands.importmodulecommand  join-path : cannot bind argument parameter 'path' because null. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\vsonugethelper.ps1:3 char:33 + $nugettempdirectory = join-path $env:system_artifactsdirectory "nuget\" +                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : invaliddata: (:) [join-path], parameterbindingvalidationexception     + fullyqualifiederrorid : parameterargumentvalidationerrornullnotallowed,microsoft.powershell.commands.joinpathcom    mand  join-path : cannot bind argument parameter 'path' because null. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\vsonugethelper.ps1:4 char:34 + $tempnugetconfigpath = join-path $nugettempdirectory "newnuget.config" +                                  ~~~~~~~~~~~~~~~~~~~     + categoryinfo          : invaliddata: (:) [join-path], parameterbindingvalidationexception     + fullyqualifiederrorid : parameterargumentvalidationerrornullnotallowed,microsoft.powershell.commands.joinpathcom    mand  get-localizedstring : term 'get-localizedstring' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try  again. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\nugetinstaller.ps1:26 char:12 +     throw (get-localizedstring -key "solution parameter must set") +            ~~~~~~~~~~~~~~~~~~~     + categoryinfo          : objectnotfound: (get-localizedstring:string) [], commandnotfoundexception     + fullyqualifiederrorid : commandnotfoundexception  convert-string : term 'convert-string' not recognized name of cmdlet, function, script file, or operabl e program. check spelling of name, or if path included, verify path correct , try again. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\nugetinstaller.ps1:29 char:21 + $b_excludeversion = convert-string $excludeversion boolean +                     ~~~~~~~~~~~~~~     + categoryinfo          : objectnotfound: (convert-string:string) [], commandnotfoundexception     + fullyqualifiederrorid : commandnotfoundexception  convert-string : term 'convert-string' not recognized name of cmdlet, function, script file, or operabl e program. check spelling of name, or if path included, verify path correct , try again. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\nugetinstaller.ps1:30 char:14 + $b_nocache = convert-string $nocache boolean +              ~~~~~~~~~~~~~~     + categoryinfo          : objectnotfound: (convert-string:string) [], commandnotfoundexception     + fullyqualifiederrorid : commandnotfoundexception  get-localizedstring : term 'get-localizedstring' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try  again. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\nugetinstaller.ps1:54 char:12 +     throw (get-localizedstring -key "no solution found using search pattern  ... +            ~~~~~~~~~~~~~~~~~~~     + categoryinfo          : objectnotfound: (get-localizedstring:string) [], commandnotfoundexception     + fullyqualifiederrorid : commandnotfoundexception  get-toolpath : term 'get-toolpath' not recognized name of cmdlet, function, script file, or operable pr ogram. check spelling of name, or if path included, verify path correct , try again. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\nugetinstaller.ps1:65 char:18 +     $nugetpath = get-toolpath -name 'nuget.exe'; +                  ~~~~~~~~~~~~     + categoryinfo          : objectnotfound: (get-toolpath:string) [], commandnotfoundexception     + fullyqualifiederrorid : commandnotfoundexception  get-localizedstring : term 'get-localizedstring' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try  again. @ c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18\nugetinstaller.ps1:70 char:12 +     throw (get-localizedstring -key "unable locate {0}" -argumentlist 'nuget. ... +            ~~~~~~~~~~~~~~~~~~~     + categoryinfo          : objectnotfound: (get-localizedstring:string) [], commandnotfoundexception     + fullyqualifiederrorid : commandnotfoundexception  ps c:\users\rab\desktop\buildagent\tasks\nugetinstaller\0.1.18> 

answer found here, don't know why solution.

move agent-folder (with agent, task, configureagent.cmd...) c:\somename, , good.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -