It looks like your workspace is not setup correctly on your Mac agent. Does
your pipeline reference a specific path? The path setup will be completely
different on Windows vs. Mac.

On Mon, Feb 13, 2023 at 1:47 PM John Patrick <nhoj.patr...@gmail.com> wrote:

> Try installing gitbash on the windows machine, then in global
> configurations define where git is located.
> I've had similar, as it's trying to access /usr/bin/git which won't exist
> at that location on windows.
>
>
> On Mon, 13 Feb 2023 at 18:55, Andrei Suslov <truv...@gmail.com> wrote:
>
>> I have two nodes: win and mac. On windows, my pipeline script runs fine,
>> and on mac it gives me this error:
>> java.io.IOException: CreateProcess error=2, The system cannot find the
>> file specified    at java.base/java.lang.ProcessImpl.create(Native Method)
>>    at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:494)    at
>> java.base/java.lang.ProcessImpl.start(ProcessImpl.java:159)    at
>> java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) Caused:
>> java.io.IOException: Cannot run program "/usr/bin/git" (in directory
>> "C:\Users\administrator.BSI\AppData\Local\Jenkins\.jenkins\caches\git-bde1e1064a79b70e5586f2d6a66af68e"):
>> CreateProcess error=2, The system cannot find the file specified
>>
>> What can I do to run the pipeline script successfully on Mac?
>>
>> --
>> 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 jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/cf990163-29bb-44e4-8004-a5b0a66c628bn%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/cf990163-29bb-44e4-8004-a5b0a66c628bn%40googlegroups.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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAH9u10kSiQvU5XDO0ZhUDCJRt%2BmyX52OWwduA5URLtqK1m3x2w%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAH9u10kSiQvU5XDO0ZhUDCJRt%2BmyX52OWwduA5URLtqK1m3x2w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Website: http://earl-of-code.com

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVf4Z%3DmkjxjJV7NrbqnUTd%2BtPyAoCnY7Bethz61J5meqAw%40mail.gmail.com.

Reply via email to