Search code examples
iosjenkinsxcodebuild

Jenkins marked build as failure, although all test case passed for iOS app


I am using Jenkins job for running current test cases for iOS app. using,

xcodebuild test ... | xcpretty

Although all tests are successful but Jenkins still marked build as failure.

How can I see the actual result?

enter image description here

Edit-1:

Even when i removed | xcpretty, still jobs marked as failure. Here are the full shell command,

xcodebuild test -workspace App.xcworkspace -scheme App -destination 'platform=iOS Simulator,name=iPhone 6, OS=10.2'

Solution

  • Finally the problem was solved by placing below line at the very begining of jenkins shell

    #!/bin/sh