-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xplat support for Xamarin Test Cloud (and other Xamarin improvements) #4
Xplat support for Xamarin Test Cloud (and other Xamarin improvements) #4
Conversation
…nTasks Xplat support for Xamarin Test Cloud (and other Xamarin improvements)
// Find location of nuget | ||
var nugetPath = tl.which('nuget'); | ||
if (!nugetPath) { | ||
tl.error('nuget was not found in the path.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Executing which nuget
on my build agent reveals the path /usr/local/bin/nuget
. Why would I be getting the error message nuget was not found in the path
? Is something other than the standard nuget path being passed?
Build output:
https://gist.github.com/jsauvexamarin/455bf1b6e442adc2a213788942bcda16
Agent version: vsts-agent-osx.10.11-x64-2.100.1.tar.gz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you running your agent interactively, or as a service?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-tried with agent version vsts-agent-osx.10.11-x64-2.101.0.tar.gz. Same result: nuget was not found in the path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is nuget in your path from your terminal?
Are you running interactively or a service? (Eric's question)
If a service, have you tried .Path and restart? https://github.com/Microsoft/vsts-agent/blob/master/docs/start/nixsvc.md
Add a command line task before to run env and compare to terminal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ericsciple: as a service.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Look at the .Path and restart link I referred to above. Also do the comparison.
Finally, this code isn't the best place to track down your issue. If my link and suggestion above doesn't fix, log an issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, will do. I'll check it out, and report back with an issue. Thx!
* resolved review comments #1 * resolved review comments #2 * addressed review comments #3 * comment mock tests * addressed review comments #4 * addressed review comments #5 * resolve build failures * remove inherit * remove unreachable codes & Fix few tests * Fix L0 Tests * addressed review comments * changed case * change source to target * removed xml2js dependency
No description provided.