Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31642

Getting "is not an identifier" error in a job

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Not A Defect
    • Component/s: component
    • Labels:
      None
    • Environment:
      Solaris
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          markewaite 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.

          Show
          markewaite 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.

            People

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

              Dates

              Created:
              Updated:
              Resolved: