-1

I attempted to execute the following command in a Jenkins batch script to run the executable named "GitFetcher.Exe," which is located within the tools directory of "IB.SO.AutoUtility."

dotnet tool install dotnet-ef --global
dotnet tool install IB.SO.AutoUtility --add-source "https://nexus.internal.com/repository/my-development/" --version 1.0.7 --global
GitFetcher

Unfortunately, it was running perfectly on my machine. However, when I execute this command in a Windows batch script within Jenkins, it produces an error stating that GitFetcher is not recognized as an internal or external command in the Jenkins console.

Could someone please provide the correct method to run an executable within Jenkins?

1
  • Maybe specify the full path to the binary? Change the "batch script " to output your environment and you'll see the path to binary is not in %PATH% variable. Commented Nov 4 at 7:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.