QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 130 forks source link

Jenkins can't detect the directory Maven was installed in #961

Open mohitparikh8080 opened 3 years ago

mohitparikh8080 commented 3 years ago

Screen Shot 2020-09-30 at 11 56 17 AM Screen Shot 2020-09-30 at 11 57 19 AM Screen Shot 2020-09-30 at 11 56 47 AM

I have installed Maven on the EC2 instance and checked the path, still when I am trying to set the path in Jenkins it shows the warning and when I try to build a Maven Project I am getting the error saying that the Maven Home does not exist.

shaikkhajaibrahim commented 3 years ago

Hi Mohit If you have followed the approach of installing maven in the classroom, Then we are using the path /opt/maven/apache-maven-3.6.3

Please check & confirm

mohitparikh8080 commented 3 years ago

Hey, I have installed as per the instructions but I keep getting the path as /root/opt/maven/apache-maven-3.6.3. I even tried removing /root in the Jenkins console but the warning remains the same even without /root.

shaikkhajaibrahim commented 3 years ago

Please change the path in the Global Tools maven to opt/maven/apache-maven-3.6.3 and share the screenshots

mohitparikh8080 commented 3 years ago

Screen Shot 2020-10-02 at 8 09 52 PM I have changed the path as you asked but I still get the same warning.

shaikkhajaibrahim commented 3 years ago

Try to schedule a meeting with me lets have a screen sharing session