Can't run Jenkins Build - bundle: “command not found”

前端 未结 6 2199
别那么骄傲
别那么骄傲 2020-12-31 06:18

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

6条回答
  •  一个人的身影
    2020-12-31 06:56

    Depending on the way you installed Jenkins, it might be running as a separate user, typically as user jenkins. If you have installed bundle into a nonstandard directory which isn't in the default PATH, like /usr/local/bin, you need to:

    • Add /usr/local/bin to the PATH of the jenkins user (check ~jenkins/.bashrc) or
    • Configure PATH environment variable in Jenkins global configuration (or slave configuration if building on a slave) or
    • Modify the build script to refer to bundle using a full path name.

提交回复
热议问题