|
I have created a powershell script which installs all the packages from a packages.config file. Seems to work great when run from the powershell prompt. When executing it from Jenkins it does not install any packages....but it seems to give no
error (return code) or output explaining any sort of problem.
I'm struggling to diagnose this as the core concepts seems to be working but just not in conjunction with other tools.
When I check the $LastExitCode in the PS script it says 0.
Here is a snippet of the script.
$solutionPath | Get-ChildItem -r -filter "packages.config" | ForEach-Object {
$filename = $_.Directory.ToString() + '\' + $_.Name
& 'NuGet.exe' install $filename -Source http://localhost/NuGetServer/nuget -OutputDirectory .\packages -ExcludeVersion
$LastExitCode
}
When run from the prompt I get good feedback and it installs the packages.
When run from the Jenkins job I get only a "0" for the $LastExitCode
I realize my facts are limited here, I'm not really looking for an answer as must as just looking for some input as to some additional troubling shooting tips.
|