Can I extend Jenkins using Jython / Python

Is it possible to write Jenkins plugins using Python (via Jython), and if so, where do I start? I do not know Java (and I have no real interest in learning it at the moment), so the possibility of using Python would be pleasant for me.

+8
java python jython continuous-integration jenkins
source share
3 answers

There are no documents. Honestly, your problem is that you need to understand how interfaces and extensions display java-jython for writing.

Here are links to creating Jenkins plugins

Let me embed Jython or Python scripts and run them from the plugin. If all you have to do is run a simple script, this is what you need.

+4
source share

If your goal is to execute Jython code in Jenkins, you may need to look at Jython Plugin .

Starting with version 1.6, you can really install Jython packages (say, if you have your own library that you want to use), and it automatically synchronizes packages through all Jenkins subordinates.

+1
source share

Since Jython can create Java classes, I see no reason why this should not work.

Note that you will need to learn at least some things about Java (mainly a platform, not necessarily a language) in order to be able to write plugins for Jenkins.

0
source share

All Articles