reimplemenation with many new features#3
Conversation
merge master to private branch
Features: - Support for python2 and python3 - allow to give a path to a file or enter directly a script - define options for python - define arguments for the script
|
Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests. |
Unfortunately this will break my build scripts: I'm using the existing Python plugin with Python 3. |
if t marker file is present, existing scripts will be converted to python 3 otherwise to python 2
|
Solved this with a marker file. Put the file python3CompytibilityMarker in JENKINS_HOME and they are converted to python 3 |
|
I'd rather not have to create a file in my JENKINS_HOME. Also some people won't know about this when updating the plugin. I think the right approach would be to change |
This reimplementation brings in the following features:
It is backward compatible with the existing python plugin. Old calls of the plugin are translated by default to python 2 inline scripts without any options or arguments. With a marker file in JENKINS_HOME a conversion to python 3 is possible.
This reimplementation solves the following issues:
[JENKINS-7551]
[JENKINS-12483]
[JENKINS-29007]