0
我正在使用流浪者从jenkins工作中旋转出一个ec2实例。尽管安装了vagrant-aws插件,但我收到一个错误提到“插件vagrant-aws”未找到。vagrant-aws当vagrantfile通过jenkins被执行时没有找到
但是,如果我从机壳上旋转机器,则不会出现错误。安装
版本颠沛流离的:放浪1.4.1,安装使用命令 流浪汉-AWS插件:vagrant plugin install vagrant-aws
以下是该错误詹金斯建立
Building in workspace /var/lib/jenkins/workspace/spinup
[spinup] $ /bin/sh -xe /tmp/hudson7580124594744420690.sh
+ cd /home/ubuntu/envs/test
+ vagrant up --provider=aws
Vagrant failed to initialize at a very early stage:
The plugin "vagrant-aws" could not be found. Please make sure that it is
properly installed via `vagrant plugin`. Note that plugins made for
Vagrant 1.0.x are not compatible with 1.1+ and this error will likely
continue to show when you use `plugin install` with a 1.0.x plugin.
Build step 'Execute shell' marked build as failure
Finished: FAILURE
你是否像Jenkins运行的用户那样运行vagrant?通常詹金斯安装创建一个用户,它可能无法访问已安装的vagrant副本。作为一个诊断,你可能会尝试添加一个脚本步骤来调用vagrant来获取版本。数字和插件列表。 – gaige
感谢gaige。你是对的,不同的用户,我改变了用户,现在它工作正常。 – Vasu