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

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

      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.

          [JENKINS-34470] Would be great to use python steps in "Pipeline as Code"

          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.  

          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.  

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

              Created:
              Updated: