We are trying to build the Scriberyte iOS mobile application on a macOS machine, which we are using as a node in the Jenkins service running on a Windows machine.
The issue is that when we try to build the application through the pipeline script from jenkins, it shows ‘sh: command not found’ on the Mac machine. The console output is displayed below please check and let us know the issue
Can you output the $PATH variable? Since you have the controller on Windows and you are running on a Mac agent, you may need to explicitly set the path in the agent configuration so it doesn’t inherit from the controller environment.
The environment from the controller should never have an effect on agents. Only when you explicitly define an env variable with name PATH in the global configuration, but that would probably cause many problems.
What I suspect is that the shell sh might not be installed at all
Didn’t MacOS make zsh as the default shell? sh should be in /usr/bin/ normally