We've got a Swift iOS project building on Jenkins, using the Xcode plugin.
In the project we're using SwiftLint to validate our code syntax, which produces Xcode warnings or errors if code syntax is incorrect (e.g. if you write something like let num :CGFloat =1
).
SwiftLint runs a script after the project has built. So note these are NOT compiler warnings, but Xcode warnings that it pops up.
Is there a way to fail the Jenkins build if there are any Xcode warnings?