当前位置: 首页 > 知识库问答 >
问题:

在Maven job构建成功后,Jenkins显示失败,解析POM失败

柯阳曦
2023-03-14

我会很感激你的帮助。谢了。

---detailed jenkins log---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.119 s
[INFO] Finished at: 2018-03-29T17:19:40-04:00
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving /Users/username/eclipse-workspace/ui-test/pom.xml to ui-test/ui-test/0.0.1-SNAPSHOT/ui-test-0.0.1-SNAPSHOT.pom
[JENKINS] Archiving /Users/username/eclipse-workspace/ui-test/target/ui-test-0.0.1-SNAPSHOT.jar to ui-test/ui-test/0.0.1-SNAPSHOT/ui-test-0.0.1-SNAPSHOT.jar
/Users/username/eclipse-workspace/ui-test/pom.xml is not inside /Users/username/.jenkins/workspace/UI-Automation-Job/Users/username/eclipse-workspace/ui-test/; will archive in a separate pass
/Users/username/eclipse-workspace/ui-test/target/ui-test-0.0.1-SNAPSHOT.jar is not inside /Users/username/.jenkins/workspace/UI-Automation-Job/Users/username/eclipse-workspace/ui-test/; will archive in a separate pass
ERROR: Failed to parse POMs
java.nio.file.NoSuchFileException: /Users/username/.jenkins/workspace/UI-Automation-Job/Users/username/eclipse-workspace/ui-test/pom.xml
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
    at java.nio.file.Files.newByteChannel(Files.java:361)
    at java.nio.file.Files.newByteChannel(Files.java:407)
    at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
    at java.nio.file.Files.newInputStream(Files.java:152)
    at hudson.FilePath.read(FilePath.java:1849)
    at jenkins.plugins.maveninfo.extractor.properties.PomPropertiesFinder.findProperties(PomPropertiesFinder.java:50)
    at jenkins.plugins.maveninfo.extractor.MavenInfoExtractor.extract(MavenInfoExtractor.java:58)
    at jenkins.plugins.maveninfo.extractor.MavenInfoEnvironment.tearDown(MavenInfoEnvironment.java:42)
    at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:908)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
    at hudson.model.Run.execute(Run.java:1727)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
channel stopped
....
....

共有1个答案

广亮
2023-03-14

来自错误:

/users/username/eclipse-workspace/ui-test/pom.xml不在/users/username/.jenkins/workspace/ui-automation-job/users/username/eclipse-workspace/ui-test/;

我们可以学习Jenkins文件来查找您的pom.xml,请检查您的作业配置并找出您在哪里输入了这个字符串/users/username/eclipse-workspace/ui-test/pom.xml

 类似资料:
  • 问题内容: Jenkins版本= 2.19 Jenkins Multibranch Pipeline插件版本= 2.92 我有一个基于分支的几个条件阶段的Jenkinsfile。 为了简洁起见,以下是我的Jenkinsfile的修改版本: 我正在使用多分支管道插件。 它成功检测并建立了我的所有分支。 我的问题是,即使我将鼠标悬停在 每个阶段都报告“成功” ,所有构建都报告为失败。 我已附上一张显示

  • Jenkins版本=2.19 Jenkins多分支管道插件版本=2.92 我有一个Jenkinsfile,其中有一些基于分支的条件阶段。 为了简洁起见,这是我的Jenkinsfile的修改版本: 我正在使用多分支管道插件。 它成功地检测并构建了我所有的分支。 我的问题是,所有构建报告为失败,即使我悬停每个阶段,它报告'成功'。 我附上了一张图片,显示了一个功能分支,其中我想要运行的两个阶段已经运行

  • ----maven-enforcer-plugin:1.0.1:enforce(default)@cli---添加ignore:org.eclipse.jetty.spdy.* ----maven-enforcer-plugin:1.0.1:enforce(enforce-bang-dependencies)@cli-- ---build-helper-maven-plugin:1.7:times

  • [maventest]$/system/library/java/javavirtualmachines/1.6.0.jdk/contents/home/bin/java-xmx512m-xx:maxpermsize=128m-dfile.encoding=utf-8-cp/users/shared/jenkins/home/plugins/maven-plugin/web-inf/lib/mav

  • 问题内容: 我已经设置了一个Jenkins服务器来运行Selenium测试。生成脚本是用Ant(CentOS 6.3上的v 1.7.1)编写的,并且测试在Sauce Labs上运行。我通过外壳执行构建: 问题是测试失败时,詹金斯(Jenkins)将其标记为成功。我可以通过将设置为来避免这种情况,请参阅: 但是,这并不理想,因为Jenkins会在遇到第一个故障时终止构建。构建完成后是否可以检查失败,

  • 我刚刚用inline语句更改了Google cloud函数源代码中的两行代码,这两行代码涉及使用datetime库解析日期字符串,没有任何其他更新。同样的部署已经运行了一年多。 突然,我犯了两个错误- 错误1- (gcloud.functions.deploy)操作错误:code=3,消息=构建失败:{"错误":{"canonicalCode":"INTERNAL","errorMessage":