Dennet dotnet command not found

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.

+4
source share
1 answer

I got this working and successfully executed commands dotnetthrough an executable shell through Jenkins.

dotnet,.NET SDK Jenkins. .NET SDK : https://www.microsoft.com/net/learn/get-started/macos - Linux, MacOS Windows.

+1

Source: https://habr.com/ru/post/1689219/


All Articles