How to configure Jython with Jenkins

Recently i run into trouble while trying to run Jython from jenkins.  I though it would be useful for others if i write down the solution in form of blog.

Prerequisite

1. Java should be installed 
2. Jython should be installed
3. Jenkins should be up and running 

SOLUTION 

Lets go step by step 

1. Log in to Jenkins 

 
2. Go to Manage Jenkins

After login , click on Manage Jenkins in Left hand side panel

 

3. Configure System

Click on configure System  from the available options 

 

4. Global properties 

Scroll down in configure System screen and select Global properties , select Environment Variables checkbox.
In the Name Section , put PATH  if its not present , in Value put Jython Path and Java Path separated by coma as shown below


   
5. Run Jython command in Job

Configure a job to run the jython command , it should be showing no error and exited with 0 .
 

I hope this helps you to run Jython with Jenkins 

Comments

Popular posts from this blog

How to connect adb devices to linux container

How to start with APPIUM PYTHON

Configuring jenkins with Robot Framework