Thanks a lot for your response. However, I have another slave where it works just fine without path. So, I am trying to understand which version it supports. Also, I don't want to hardcode the path in the Jenkinsfile. Please help.
Regards, Venkatesh On Tue, Oct 13, 2020 at 7:14 PM Eric Pyle <[email protected]> wrote: > This message is telling you that your "bat" step does not know where to > find the "dotnet" command. If you give the full path it should succeed. > > On 10/13/2020 9:33 AM, Ven H wrote: > > In my Jenkinsfile, I am using the following command > > bat "dotnet restore" > > I have .NET Core SDK installed in the Jenkins Slave, but still the job > throws an error saying "'dotnet' is not recognized as an internal or > external command, > operable program or batch file." > > So, how to know which version of .NET Core SDK or for that matter any > command (say MSBuild) is supported by the "bat" step of Jenkinsfile. > > Please help. > > Regards, > Venkatesh > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/CAPp28eqvJyaz_C2G%2Bs2v1V7txGb_tAJoprA6qmUAMRh4Vf%3DQsA%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/CAPp28eqvJyaz_C2G%2Bs2v1V7txGb_tAJoprA6qmUAMRh4Vf%3DQsA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/a4c84b6c-57fb-0547-d30d-12c6246c5242%40cd-adapco.com > <https://groups.google.com/d/msgid/jenkinsci-users/a4c84b6c-57fb-0547-d30d-12c6246c5242%40cd-adapco.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPp28erb5GMhpGyZ%3DKPyw%2BCQRPgqy7a%3DK0L900J5PJAwZtqqkA%40mail.gmail.com.
