Check the pom.xml definition and the code source of the class day1.java Attention The IP address of the test version of the website is hardcoded that shouldn't be done in the real CI/CD environment.
if the plugin Log Parser is not present
Go to manage-Jenkins -> Manage plugins -> Tab available -> Filter Log Parser
Check and install without restart
Change lines 27 of day1.java file , enter your vm api address
Go New Item, Name petclinic-selenium, copy from petclinic-maven
Hit Ok
Source Management
Fork and clone https://github.com/crunchy-devops/petclinic-selenium.git
Git enter https://github.com/<your_repo>/petclinic-selenium.git
Build
Root POM: pom.xml
Goals and options: test
Select Console output (build log) parsing
Tick Mark build Failed on Error
Tick Use project rule
Path to rule file in workspace : parserules
parserules
file contains a regex for checking if there is an error in jenkins log file.