I am trying to configure CI locally from Jenkins on OSX, however I am having some problems trying to execute shell commands. Here are the commands I'm trying to run in Jenkins configuration:
cd /Users/username/projectname
dotnet build HD-Project.sln
However, when I try to build a project, I get the following errors:
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
Any help would be greatly appreciated, thanks.
Craig source
share