即使路径变量已更新,Jenkins引发命令找不到错误

时间:2018-09-14 07:40:39

标签: xamarin jenkins path msbuild xbuild

如果我键入命令echo $ PATH,我可以看到环境变量已更新,但是我发现xbuild命令未找到错误。

+ echo /Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin
/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin
+ echo Hello world
Hello world
+ xbuild
**/tmp/jenkins3283243647067496838.sh: 8: /tmp/jenkins3283243647067496838.sh: xbuild: not found**
Build step 'Execute shell' marked build as failure
Finished: FAILURE

如果我在Jenkins工作区中执行相同的命令,它将正常工作。我不明白为什么会这样发生。

s-MacBook-Air:First_IOS $ xbuild

>>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<

MSBUILD: error MSBUILD0005: Please specify the project or solution file to build, as more than one solution or project file was found in the current directory
MANOJs-MacBook-Air:First_IOS manojdeshpande$ 

0 个答案:

没有答案