title: Cant get Jenkins to work with fastlane
body: <p>I have a Jenkins server that pulls my build and builds it, in the shell scripts i have a fastlane command that runs by distribution. Issue is it never is able to execute sucessfully. </p>
  
  <p>my shell code is simply:</p>
  
  <pre><code>bundle exec fastlane distribute_to_testflight
  </code></pre>
  
  <p>called as i use plugins for fastlane in my project. </p>
  
  <p>Result:</p>
  
  <pre><code> $ bash -c export
      $ bash -c "test -f ~/.rvm/scripts/rvm"
      $ bash -c "test -f ~/.rvm/scripts/rvm"
      [App] $ bash -c " source ~/.rvm/scripts/rvm &amp;&amp; rvm use --install --create 2.4.1 &amp;&amp; export &gt; rvm.env"
      Using /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1
      [App] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/jenkins2674080270342174416.sh
      + bundle exec fastlane distribute_to_testflight
      /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler/spec_set.rb:88:in `block in materialize': Could not find CFPropertyList-2.3.6 in any of the sources (Bundler::GemNotFound)
          from /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in `map!'
          from /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in `materialize'
          from /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler/definition.rb:170:in `specs'
          from /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler/definition.rb:237:in `specs_for'
          from /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler/definition.rb:226:in `requested_specs'
          from /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler/runtime.rb:108:in `block in definition_method'
          from /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler/runtime.rb:20:in `setup'
          from /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler.rb:107:in `setup'
          from /Users/Shared/Jenkins/.rvm/gems/ruby-2.4.1/gems/bundler-1.16.0/lib/bundler/setup.rb:20:in `&lt;top (required)&gt;'
          from /Users/Shared/Jenkins/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
          from /Users/Shared/Jenkins/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
      Build step 'Execute shell' marked build as failure
      Finished: FAILURE
  </code></pre>
  
  <p>Im not sure of the issue, i installed ruby with rvm on the jenkins user as you can see, but in my main project i work on the code with, i just have my ruby gems and files in the actual project repo that i commit to git, so perhaps i could get jenkins to use what it pulls from the repo? </p>
  
  <p>Im really lost on this so any guidance on the issue would be great</p>