Jenkins is kindly running an Ant build for us. The Ant build orchestrates CI for an Objective-C project - a library that is available on both iOS and OSX.
This Ant build can be run both in or out of Jenkins, so devs can verify their work before checking in, and Jenkins will provide another layer of checks. (Therefore reducing the chance of a broken build impacting other contributors).
I've created a task that does the following:
<target name="--podspec.lint">
<exec executable="pod" failifexecutionfails="yes" failonerror="yes">
<arg line="spec lint ProjectName.podspec"/>
</exec>
</target>
. . it seems that Jenkins is using the System Ruby, even though the machine has RVM installed. Is there a way to tell Jenkins to use the rvm version? This seems like a path problem - the sytem bin dirs have moved the the front of the path, even though RVM takes precedence in the .profile.