In the Execute shell command option in Jenkins I am trying to execute xcodebuild -scheme "My project" test | xcpretty --report junit --output report.xml
But when Jenkins executes it, it looks like it does not recognize the pipe character and it takes it as next line or something.
Things I have tried - Putting the command in a .sh file - Escaping the pipe character - Use Eval
None of them have worked
I do not want to use the Xcode plugin for the moment.
Any tips to make it work?