Re: Jenkins error when running the project on Mac but not on windows

2023-02-13 Thread Alex Earl
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  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  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 specifiedat java.base/java.lang.ProcessImpl.create(Native Method)
>>at java.base/java.lang.ProcessImpl.(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
>> 
>> .
>>
> --
> 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
> 
> .
>


-- 
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.


Re: Jenkins error when running the project on Mac but not on windows

2023-02-13 Thread John Patrick
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  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 specifiedat java.base/java.lang.ProcessImpl.create(Native Method)
>at java.base/java.lang.ProcessImpl.(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
> 
> .
>

-- 
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.


Jenkins error when running the project on Mac but not on windows

2023-02-13 Thread Andrei Suslov
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 
specifiedat java.base/java.lang.ProcessImpl.create(Native Method)at 
java.base/java.lang.ProcessImpl.(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.