我正在尝试在OSX上使用Jenkins本地设置CI,但是当我尝试执行shell命令时遇到了一些问题。以下是我尝试在Jenkins配置中运行的命令:
cd /Users/username/projectname
dotnet build HD-Project.sln
然而,当我尝试构建项目时,我收到以下错误信息:Building in workspace /Users/Shared/Jenkins/Home/workspace/HD-Build
[HD-Build] $ /bin/sh -xe
/Users/Shared/Jenkins/tmp/jenkins2699993427980474696.sh
+ cd /Users/username/projectname
+ dotnet build HD-Project.sln
/Users/Shared/Jenkins/tmp/jenkins2699993427980474696.sh: line 3:
dotnet: command not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
非常感谢您的帮助。