reimplemenation with many new features by mwinter69 · Pull Request #3 · jenkinsci/python-plugin · GitHub
Skip to content

reimplemenation with many new features#3

Open
mwinter69 wants to merge 6 commits into
jenkinsci:masterfrom
mwinter69:master
Open

reimplemenation with many new features#3
mwinter69 wants to merge 6 commits into
jenkinsci:masterfrom
mwinter69:master

Conversation

@mwinter69

Copy link
Copy Markdown

This reimplementation brings in the following features:

  • python2 and python3 support
  • Python2/3 installation to configure location of python, with auto detect feature
  • inline python scripts
  • use python script from file sytem
  • python options and script arguments

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]

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
@jenkinsadmin

Copy link
Copy Markdown
Member

@jhasse

jhasse commented Apr 12, 2016

Copy link
Copy Markdown
Member

It is backward compatible with the existing python plugin. Old calls of the plugin are translated to python 2 inline scripts without any options or arguments.

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
@mwinter69

Copy link
Copy Markdown
Author

Solved this with a marker file. Put the file python3CompytibilityMarker in JENKINS_HOME and they are converted to python 3

@jhasse

jhasse commented Apr 13, 2016

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants