Build Failure using jenkins

By | April 4, 2018

I am running my selenium scripts using jenkins 2.1 .

When I run through jenkins, the build fails.

Below are the versions used, I tried changing many version but it didn’t work out:

maven compiler -2.4
maven surefire -2.7.1
selenium 2.44:

   [ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

E:Jino_testingAutomation_projectGuru99srctestjavaPageObjectLocators.java:[17,38] error: package com.relevantcodes.extentreports does not exist
E:Jino_testingAutomation_projectGuru99srctestjavaPageObjectLocators.java:[19,38] error: package com.relevantcodes.extentreports does not exist
E:Jino_testingAutomation_projectGuru99srctestjavaPageObjectLocators.java:[156,2] error: cannot find symbol
  symbol:   class ExtentReports
  location: class Locators
E:Jino_testingAutomation_projectGuru99srctestjavaPageObjectLocators.java:[156,25] error: cannot find symbol
  symbol:   variable ExtentReports
  location: class Locators
E:Jino_testingAutomation_projectGuru99srctestjavaPageObjectLocators.java:[162,13] error: cannot find symbol
  symbol:   variable LogStatus
  location: class Locators
E:Jino_testingAutomation_projectGuru99srctestjavaPageObjectLocators.java:[174,14] error: cannot find symbol

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Wed Apr 04 11:15:51 IST 2018
[INFO] Final Memory: 23M/57M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving E:Jino_testingAutomation_projectGuru99pom.xml to Guru99/Guru99/0.0.1-SNAPSHOT/Guru99-0.0.1-SNAPSHOT.pom
channel stopped
Finished: FAILURE