jenkins使用哪个settings.xml?

我有一个Jenkins主服务器(在一个小的Linux机器上运行)和一个Jenkins从机(在“正确的” XP计算机上运行)。

我已经配置了所有要在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 hudson.remoting.Channel@ee5bc4: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文件?

回答:

像往常一样,解决方案比我想象的要简单。

Jenkins从属服务器配置为由系统用户运行。结果,要使其使用我的settings.xml,我要做的就是更改其关联用户,问题消失了!

以上是 jenkins使用哪个settings.xml? 的全部内容, 来源链接: utcz.com/qa/425444.html

回到顶部