-
Bug
-
Resolution: Not A Defect
-
Blocker
-
None
-
Solaris
I'm trying to execute abc.sh script, in the logs getting "is not an identifier" error as shown below
*./abc.sh: JAVA_HOME=/u01/app/oracle/jdk7/jdk1.7.0_79: is not an identifier
Build step 'Execute shell' marked build as failure
Finished: FAILURE*
*JAVA_HOME path is already set in oracle profile.
-
- Only oracle user can execute abc.sh script
- I'm able to run this script within SOLARIS server without errors.
- Only oracle user can execute abc.sh script
The "is not an identifier" is likely an indication that your script is trying to both assign to JAVA_HOME and export in the same line, but the shell which is executing the script does not understand that syntax.
Even if that is not the case, I suspect that "abc.sh" is a script which you control, so you'll need to debug it rather than submitting a Jenkins bug report.
You might try placing "#! /bin/bash" or "#! /bin/ksh" as the first line of your script, in case the default shell that is executing the script doesn't have the capabilities you need.