Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I extend Jenkins with Jython/Python

Is it possible to write Jenkins plugins using Python (via Jython), and if so, where would I get started? I don't know Java (and don't have a real interest in learning it at the moment) so being able to use Python would be nice for me.

like image 874
ojii Avatar asked Apr 19 '11 09:04

ojii


2 Answers

There's no docs on that. Frankly your problem with be you must understand how the interfaces and extensions map from java to jython to write it.

Here are links on writing Jenkins plugins

Let's you embed either Jython or Python scripts and run them from a plugin If all you nee to do is run a simple script, that be what you need.

like image 89
MJB Avatar answered Nov 09 '22 00:11

MJB


If your goal is to execute Jython code within Jenkins, you may want to have a look at the Jython Plugin.

Starting version 1.6, you can actually install Jython packages (say if you have your own library you'd like to use), and it'll automatically sync up the packages across all Jenkins slaves.

like image 39
Jack Leow Avatar answered Nov 08 '22 23:11

Jack Leow