I'm getting this error when i try to run my automation script in jenkins.

When I run in IntelliJ or Eclipse, it's running fine since i have installed
JDK 1.7.

However when i run in Jenkins with the same script, it's giving the error
below.

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \Program Files (x86)\Jenkins\jobs\QA Smoke
Test\workspace\src\main\java\Util\DriverManager2.java:[21,15] error:
strings in switch are not supported in -source 1.5
mojoFailed
org.apache.maven.plugins:maven-compiler-plugin:2.3.2(default-compile)[ERROR]
\Program Files (x86)\Jenkins\jobs\QA Smoke
Test\workspace\src\main\java\Util\DriverManager.java:[64,20] error: strings
in switch are not supported in -source 1.5

Can anyone guide me how to get over this issue?

Thanks


-- 

*- "If you haven't suffered, you haven't lived your life."*
**
Thanks,

Sirus

Reply via email to