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开发者_JAVA技巧 do they do and how do they work?
Thanks for any help.
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.
精彩评论