简体   繁体   中英

Jenkins could not locate pom.xml of the project

I have a created a job for mavenized github project. When I build it, I am getting the error as unable to locate pom.xml under jenkins_dir/workspace/build_name. But when I look into Jenkins directory I could see that Jenkins has cloned the project from GitHub to it's workspace under jenkins_dir/workspace/build name/project name/pom.xml but it is looking for pom in jenkins_dir/workspace/build name. Am I missing some configuration?

Yes I think your configuration is a little off. Assuming your job type is a Maven Project, and given you have said Jenkins is currently looking for the pom file in

jenkins_dir/workspace/build name 

you should change the Root POM field to

"project name/pom.xml"

Paths in Jenkins are workspace-relative.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM