hudson.plugins.promoted_builds_simple
Class PromotedBuildsSimplePlugin

java.lang.Object
  extended by hudson.Plugin
      extended by hudson.plugins.promoted_builds_simple.PromotedBuildsSimplePlugin
All Implemented Interfaces:
hudson.model.Saveable

public class PromotedBuildsSimplePlugin
extends hudson.Plugin

Simply add a link in the main page sidepanel.

Author:
Alan Harder

Nested Class Summary
static class PromotedBuildsSimplePlugin.PromotedBuildsRunListener
           
 
Nested classes/interfaces inherited from class hudson.Plugin
hudson.Plugin.DummyImpl
 
Field Summary
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
PromotedBuildsSimplePlugin()
           
 
Method Summary
 void configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 void doMakePromotable(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 void doUpload(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Receive file upload from startUpload.jelly.
 List<PromotionLevel> getLevels()
           
 void start()
           
 
Methods inherited from class hudson.Plugin
configure, doDynamic, getConfigXml, load, postInitialize, save, setServletContext, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromotedBuildsSimplePlugin

public PromotedBuildsSimplePlugin()
Method Detail

start

public void start()
           throws Exception
Overrides:
start in class hudson.Plugin
Throws:
Exception

getLevels

public List<PromotionLevel> getLevels()

configure

public void configure(org.kohsuke.stapler.StaplerRequest req,
                      net.sf.json.JSONObject formData)
               throws IOException,
                      javax.servlet.ServletException,
                      hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.Plugin
Throws:
IOException
javax.servlet.ServletException
hudson.model.Descriptor.FormException

doMakePromotable

public void doMakePromotable(org.kohsuke.stapler.StaplerRequest req,
                             org.kohsuke.stapler.StaplerResponse rsp)
                      throws IOException
Throws:
IOException

doUpload

public void doUpload(org.kohsuke.stapler.StaplerRequest req,
                     org.kohsuke.stapler.StaplerResponse rsp)
              throws IOException,
                     javax.servlet.ServletException,
                     InterruptedException
Receive file upload from startUpload.jelly. File is placed in $JENKINS_HOME/userContent directory.

Throws:
IOException
javax.servlet.ServletException
InterruptedException


Copyright © 2004-2011. All Rights Reserved.