I’ve put Jenkins build settings separately for each platform.
Even if -projectPath of the command line command is set as follows, the actual project path is not changed. It is automatically changed to the project executed last in unity hub, and it is not possible to automate the build.
I have the exact same problem with building from the command line. Did you happen to find a solution to this problem?