-
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
[JENKINS-31642] Getting "is not an identifier" error in a job
Priority | Original: Minor [ 4 ] | New: Blocker [ 1 ] |
Description |
Original:
I'm trying to execute a command. Ex: ./abc.sh , 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* |
New:
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 |
Description |
Original:
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 |
New:
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. |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 167079 ] | New: JNJira + In-Review [ 198112 ] |
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.