I am currently trying to run a jenkins build for some of my cucumber tasks. All of my gems have been installed by using the Bundler. The gems are stored in the vendor folder
In my case, I added this line to the first of script:
#!/bin/bash -l