Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Jenkins plugin developement, what is the Stapler (org.kohsuke.stapler.Stapler)?

I am trying to create a simple jenkins plug-in that will run a job but Project.doBuild() requires StaplerRequest and StaplerResponse.

What is the Stapler (org.kohsuke.stapler.Stapler), StaplerRequest(org.kohsuke.stapler.StaplerRequest), and StaplerResponse(org.kohsuke.stapler.StaplerResponse)? What do they do and how do they work?

Thanks for any help.

like image 372
user833970 Avatar asked Jul 07 '11 16:07

user833970


1 Answers

Check out http://stapler.kohsuke.org

Stapler is a library that "staples" your application objects to URLs, making it easier to write web applications. The core idea of Stapler is to automatically assign URLs for your objects, creating an intuitive URL hierarchy.

like image 76
Du Song Avatar answered Nov 16 '22 02:11

Du Song