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

Would be great to use python steps in "Pipeline as Code"

    Details

    • Similar Issues:

      Description

      the python-plugin did not make the list and I could not get it to work so it looks like it is not compatible:
      https://github.com/jenkinsci/pipeline-plugin/blob/master/COMPATIBILITY.md

      There is a workaround to use the "sh 'python somescript.py'" but I think it would be better to have a the python plugin working.

        Attachments

          Activity

          Hide
          tafthorne Thomas A. F. Thorne added a comment -

          In the non-pipeline version you can add `#!/usr/bin/env python` or similar to the start of the shell block to have it interpreted by the python interpreter.  Is the same not possible in the pipeline case?  I guess that kind of is the work around you specify.  

          Show
          tafthorne Thomas A. F. Thorne added a comment - In the non-pipeline version you can add `#!/usr/bin/env python` or similar to the start of the shell block to have it interpreted by the python interpreter.  Is the same not possible in the pipeline case?  I guess that kind of is the work around you specify.  

            People

            • Assignee:
              jhasse Jan Niklas Hasse
              Reporter:
              markfink Mark Fink
            • Votes:
              9 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

              • Created:
                Updated: