在詹金斯,我已经配置了Maven工作。配置了“ Root POM”

(/home/sdiuser/Build-Release/maven_artifactid/) and also tried with (/home/sdiuser/Build-Release/maven_artifactid/pom.xml).


但它说没有这样的文件或目录。

/home/sdiuser/Build-Release/maven_artifactid/pom.xml


没有这样的文件:“ / home / sdiuser / Build-Release / maven_artifactid / pom.xml”

但是文件在那里。

[sdiuser@usboss-sdijenkins Build-Release]$ ls -lrt /home/sdiuser/Build-Release/maven_artifactid/
total 12
-rw-rw-r--. 1 sdiuser sdiuser  767 Aug 31 03:01 pom.xml
drwxrwxr-x. 4 sdiuser sdiuser 4096 Aug 31 03:01 src
drwxrwxr-x. 7 sdiuser sdiuser 4096 Aug 31 03:02 target


詹金斯输出

Building in workspace /var/lib/jenkins/jobs/maven-test/workspace
Parsing POMs
ERROR: No such file /home/sdiuser/Build-Release/maven_artifactid/pom.xml
Perhaps you need to specify the correct POM file path in the project configuration?
Finished: FAILURE

最佳答案

问题是文件夹上缺少x,因此不允许Jenkins搜索目录。尝试chmod +x /home/sdiuser/Build-Release/maven_artifactid并重复。

09-05 14:57