每周周一的时候,bamboo最容易出问题。因为我这边bamboo是server – agent的模式 ———— server端在公网,根据项目的不同分配了多个agent端在本地。每周到公司遇到的最多的问题就是agent端的机器因断电等需要重新连接server端 。不过上周一遇到另外一个情况,问题出在server端。bamboo打包时报错内容如下:

<pre class="prettyprint lang-xml">re-install the plugin with key "com.atlassian.bamboo.plugins.maven:task.builder.mvn3"

详见下面的截图:

<a href="https://blog.361way.com/wp-content/uploads/2014/01/bamboo-maven.jpg"><img src="https://blog.361way.com/wp-content/uploads/2014/01/bamboo-maven.jpg" alt="bamboo-maven" width="790" height="111" class="alignnone size-full wp-image-2958" /></a>

之前一直是好,所以mvn插件肯定是装好的。网上查了下解决方法 ,其中在atlsattian的anwsers中发现这样一个链接https://answers.atlassian.com/questions/206697/bamboo-5-1-maven-missing ,其中提到:

<pre class="prettyprint lang-xml">Aha! Found it, somehow, the maven plugin had gotten disabled. I didn't find it before because I didn't realize you have to switch the pulldown from "user plugins" to "system plugins" before I could find it greyed out in the list and re-enable it.

需要在user plugins的下拉菜单中找到system plugins,然后启用mvn插件就行了。

<a href="https://blog.361way.com/wp-content/uploads/2014/01/bamboo-maven1.jpg"><img src="https://blog.361way.com/wp-content/uploads/2014/01/bamboo-maven1.jpg" alt="bamboo-maven1" width="149" height="168" class="alignnone size-full wp-image-2959" /></a><a href="https://blog.361way.com/wp-content/uploads/2014/01/bamboo-maven2.jpg"><img src="https://blog.361way.com/wp-content/uploads/2014/01/bamboo-maven2.jpg" alt="bamboo-maven2" width="315" height="139" class="alignnone size-full wp-image-2960" /></a>
<a href="https://blog.361way.com/wp-content/uploads/2014/01/bamboo-maven3.png"><img src="https://blog.361way.com/wp-content/uploads/2014/01/bamboo-maven3.png" alt="bamboo-maven3" width="701" height="51" class="alignnone size-full wp-image-2961" /></a>

注:记得点开show system add-ons才可以查看所有的插件 。