public class JobIngredient extends Ingredient
Ingredient
that transports a job definition
(but no build records.)Modifier and Type | Class and Description |
---|---|
static class |
JobIngredient.DescriptorImpl |
static class |
JobIngredient.ImportReportImpl |
Constructor and Description |
---|
JobIngredient(String name,
String description) |
JobIngredient(String name,
String description,
jenkins.util.xstream.XStreamDOM definition) |
Modifier and Type | Method and Description |
---|---|
void |
cook(Recipe recipe,
ImportReportList reportList)
Imports this ingredient into the current Jenkins.
|
static JobIngredient |
fromJob(hudson.model.Job j,
String description) |
jenkins.util.xstream.XStreamDOM |
getDefinition() |
String |
getDescription() |
String |
getName() |
void |
setDescription(String description) |
void |
setName(String name) |
apply, getDescriptor, isVisibleDuringImport, read
public JobIngredient(String name, String description, jenkins.util.xstream.XStreamDOM definition)
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public jenkins.util.xstream.XStreamDOM getDefinition()
public void cook(Recipe recipe, ImportReportList reportList) throws IOException
Ingredient
cook
in class Ingredient
reportList
- Report what was actually done by adding ImportReport
to this
(both success and non-fatal failures.)IOException
public static JobIngredient fromJob(hudson.model.Job j, String description)
Copyright © 2004-2014. All Rights Reserved.