org.jenkinsci.plugins.rundeck
Class OptionProvider

java.lang.Object
  extended by org.jenkinsci.plugins.rundeck.OptionProvider

public class OptionProvider
extends Object

Option provider for RunDeck - see http://rundeck.org/docs/RunDeck-Guide.html#option-model-provider

Author:
Vincent Behar

Nested Class Summary
static class OptionProvider.Option
          Javabean representation of an option
 
Constructor Summary
OptionProvider()
           
 
Method Summary
 void doArtifact(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Provider for artifacts of a specific build, with the name and absolute url of the artifact.
 void doBuild(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Provider for builds of a specific artifact, with the version/date of the build and absolute url of the artifact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionProvider

public OptionProvider()
Method Detail

doArtifact

public void doArtifact(org.kohsuke.stapler.StaplerRequest request,
                       org.kohsuke.stapler.StaplerResponse response)
                throws IOException
Provider for artifacts of a specific build, with the name and absolute url of the artifact.
Mandatory parameter : "project"
Optional parameters : "build" (either a build number, or "lastStable", "lastSuccessful", "last"), "artifactRegex" (java regex used to filter artifacts).

Throws:
IOException

doBuild

public void doBuild(org.kohsuke.stapler.StaplerRequest request,
                    org.kohsuke.stapler.StaplerResponse response)
             throws IOException
Provider for builds of a specific artifact, with the version/date of the build and absolute url of the artifact.
Mandatory parameters : "project" and either "artifact" (exact filename of the artifact) or "artifactRegex" (java regex used to match against the filename of the artifact).
Optional parameters : "limit" (int), "includeLastStableBuild" (boolean), "includeLastSuccessfulBuild" (boolean), "includeLastBuild" (boolean)

Throws:
IOException


Copyright © 2004-2012. All Rights Reserved.