我有一個Jenkins master(運行在一個小的Linux機器上)和一個Jenkins slave(運行在「正確的」XP機器上)。jenkins slave使用哪個settings.xml?
我已經爲Windows XP從站上運行的所有跳板配置了這兩個參數。
不幸的是,每一個版本是對從運行時間,構建失敗,因爲以下錯誤:
ERROR: Ignore Problem expanding maven opts macros org.jenkinsci.plugins.tokenmacro.TokenMacro
Found mavenVersion 3.0.3 from file jar:file:/E:/java-ext/apache-maven-3.0.3/lib/maven-core-3.0.3.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties
Parsing POMs
ERROR: Echec à la lecture des POMs
hudson.util.IOException2: remote file operation failed: C:\hudson\workspace\Autocat at [email protected]:ndx-PC-winXP
at hudson.FilePath.act(FilePath.java:752)
at hudson.FilePath.act(FilePath.java:738)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:817)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:617)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:429)
at hudson.model.Run.run(Run.java:1374)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:467)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: hudson.remoting.ProxyException: hudson.maven.MavenModuleSetBuild$MavenExecutionException: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM: Failure to find fr.perigee.java:java-parent:pom:0.0.6 in http://tinkerpop.com/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of tinkerpop has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 10
我知道這個錯誤是由於包含這些文物庫的不好定義,因爲使用存儲庫在settings.xml中定義。所以,我的問題很簡單:我怎樣才能定義Jenkins從站使用哪個settings.xml文件?
謝謝,我設置從服務作爲本地用戶和設置運行。C:/users/myuser/.m2/下的xml終於被拾起。此外:使用默認系統用戶並且沒有其他設置,使用maven安裝文件夾下的settings.xml。 – Rob