maven構建Jenkins ci plugin沒法下載資源解決方式

想使用git params plugin實現參數化構建,可是舊版的插件對於ssh鏈接git存在bug,不能使用git tag。須要本身使用快照snapshot版的插件,固然這個問題在jenkins2.0+版本中不會有,下載編譯源碼編譯是遇到了一些錯誤javascript

錯誤大體是這樣的:java

Non-resolvable parent POM for org.jenkins-ci.tools:git-parameter:0.4.1-SNAPSHOT: Failure to find org.jenkins-ci.plugins:plugin:pom:1.580.2 in 
http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, 
resolution will not be reattempted until the update interval of nexusMirror has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 10

 @ 

 

經過本身的nexus倉庫沒法獲取到git

<parent>

<groupId>org.jenkins-ci.plugins</groupId>

<artifactId>plugin</artifactId>

<!-- Baseline Jenkins version you use to build and test the plugin. Users 

must have this version or newer to run. -->

<version>1.580.2</version>

</parent>

在setting文件的mirrors節點下增長一個mirror指向http://repo.jenkins-ci.org/publicssh

 

<mirrors>
 <mirror>
      <mirrorOf>m.g.o-public</mirrorOf>
      <url>http://repo.jenkins-ci.org/public</url>
      <id>jenkins-ci.org</id>
      <name>Jenkins CI Public</name>
 </mirror>
</mirrors>
相關文章
相關標籤/搜索