• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • component
    • 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.

          [JENKINS-31642] Getting "is not an identifier" error in a job

          Mark Waite added a comment -

          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.

          Mark Waite added a comment - 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.

            praqma Praqma Support
            soppu1008 Chenna Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: