Sam Sam
Sam Sam

Reputation: 1

Jenkins not recognizing file path for pom.xml

I have file path as /Users/xxx/Documents/WorkSpace/project-test/pom.xml Under root POM I have given the same path which I got for terminal.

I get following error on Jenkins ERROR: No such file /Users/xxx/Documents/WorkSpace/project-test/pom.xml Perhaps you need to specify the correct POM file path in the project configuration? I am using Mac High Sierra.

Upvotes: 0

Views: 5996

Answers (1)

sachin_ur
sachin_ur

Reputation: 2661

enter image description hereI hope you are using maven project

If your using windows machine path somting like this--> C:\var\www\hello\complete\pom.xml

or you can get this type also --> C:\Program Files (x86)\Jenkins\workspace\hello-world\complete\pom.xml

If your using linux machine path should be like this --> /etc/maven/complete/pom.xml inside complete directory pom.xml file should be there

If you are using git hub project path should like this --> https://github.com/username/hello/maven/complete/pom.xml inside that directory you should having pom.xml file

then Jenkins will accept peacefully

make sure you added pom.xml at the end of path otherwise you will get below error

if you add only path without pom.xml

Upvotes: 1

Related Questions