public abstract class Ingredient extends hudson.model.AbstractDescribableImpl<Ingredient> implements hudson.ExtensionPoint
Recipe
is a collection of Ingredient
s.Recipe
Constructor and Description |
---|
Ingredient() |
Modifier and Type | Method and Description |
---|---|
void |
apply(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject opt)
Apply the import options to this ingredient
(such as parameter values, variable names, etc.)
This is a destructive operation.
|
protected abstract void |
cook(Recipe recipe,
ImportReportList reportList)
Imports this ingredient into the current Jenkins.
|
IngredientDescriptor |
getDescriptor() |
boolean |
isVisibleDuringImport()
Return false if this recipe needs to be hidden during the import conversation.
|
protected static InputStream |
read(jenkins.util.xstream.XStreamDOM dom) |
public IngredientDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<Ingredient>
getDescriptor
in class hudson.model.AbstractDescribableImpl<Ingredient>
public boolean isVisibleDuringImport()
public void apply(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject opt)
protected abstract void cook(Recipe recipe, ImportReportList reportList) throws IOException, InterruptedException
recipe
- reportList
- Report what was actually done by adding ImportReport
to this
(both success and non-fatal failures.)IOException
InterruptedException
protected static InputStream read(jenkins.util.xstream.XStreamDOM dom)
Copyright © 2004-2014. All Rights Reserved.