通过管道脚本在jenkins中安装fastlane插件

时间:2018-04-30 10:42:44

标签: ruby shell jenkins jenkins-pipeline fastlane

我正在尝试在jenkins中运行构建。在构建执行过程中,Jenkins克隆了工作区中的git。在检查fastlane文件夹是否存在后,它会创建包含fastfilematchfileappfilepluginfile的文件夹。之后我尝试通过fastlane install_plugins在工作区中安装diwai插件。但是当它到达install_plugins步骤时,它显示了这个

Installing plugin dependencies...
Errno::EACCES: Permission denied @ rb_sysopen -
/users/<username>/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/unf_ext-0.0.7.5/.document
An error occurred while installing unf_ext (0.0.7.5), and Bundler cannot
continue.
Make sure that `gem install unf_ext -v '0.0.7.5'` succeeds before bundling.

由于我的jenkins用户没有admin / sudo权限,我使用了一种解决方法,我添加了用户/&lt;用户名&gt; /.gem到jenkins的环境变量路径,

问题是如何解决此错误,我无法为我的jenkin用户提供管理员权限。我还尝试chmod 777 users/<username>/.fastlane/bin使其可读/可写/可执行

如果我对错误的理解是正确的,或者我需要一种新的方法,请指出正确的方向。如果需要任何其他信息,请告诉我

感谢您的帮助

0 个答案:

没有答案
相关问题