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

Execute Python script fails with "SyntaxError: invalid syntax" if you have command line parameters

    Details

    • Similar Issues:

      Description

      Execute Python script fails with "SyntaxError: invalid syntax" if your command line contain parameters/arguments

      Calling python scripts with arguments is something common.

        Attachments

          Activity

          Hide
          rtyler R. Tyler Croy added a comment -

          I'm so far removed from this plugin, somebody else should probably pick it up

          Show
          rtyler R. Tyler Croy added a comment - I'm so far removed from this plugin, somebody else should probably pick it up
          Hide
          ammasi Andrea Maria Masi added a comment -

          Hello .

          I resolved this issue in the following way :

          1) I have injected in Jenkins the following environment variables (is a just an example) :

          MANIFEST=/home/masia/.jenkins/jobs/EPIC/workspace/VERIF/new/setup/
          USERNAME=andrea masi

          2) I invoked the following Shell script :
          #!bin/sh
          ./st_repo2.py --manifest ${MANIFEST}/manifest.json -u "${USERNAME}" init

          I Hope, can be useful.

          Regards,
          Andrea

          Show
          ammasi Andrea Maria Masi added a comment - Hello . I resolved this issue in the following way : 1) I have injected in Jenkins the following environment variables (is a just an example) : MANIFEST=/home/masia/.jenkins/jobs/EPIC/workspace/VERIF/new/setup/ USERNAME=andrea masi 2) I invoked the following Shell script : #!bin/sh ./st_repo2.py --manifest ${MANIFEST}/manifest.json -u "${USERNAME}" init I Hope, can be useful. Regards, Andrea

            People

            • Assignee:
              Unassigned
              Reporter:
              ssbarnea Sorin Sbarnea
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: