how to make jenkins run a python script that executes a build?

Learning Jenkins, and trying to get it to build a project for which my build script is written in python.

./ -i

I've tried using the 'Execute script' and 'Execute Python script'. The script first line is


Jenkins doesn't complain about either attempt, it just seems to ignore the setting, declaring the build successful as soon as the code is checked out.

I've read a few old mail lists that hint that I'll have to write a bash script ( and have it call the python script. I hope that's not the answer.


You should be able to use an "Execute shell" build step and specify /path/to/ -i

I'm guessing that the current directory when the build job runs isn't what you're expecting. Jenkins has a built-in environment variable WORKSPACE that is set to the root of the build's workspace, so assuming that the Python script is at the root of your checked out code, $WORKSPACE/ should also work.

Need Your Help

Export Grid view to excel and save excel file to folder


I want to save excel file which export data of grid view.I have written code to export gridview data to excel but i dont know, how to save exported file.

Is it possible to make an Action “unclickable”?

android android-actionbar actionbarsherlock

I'm using the ActionBarSherlock library for my application for API level 10. I was wondering if it is possible to have an Action icon that does not respond when it has been clicked.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.