Class ProjectForm
java.lang.Object
au.com.centrumsystems.hudson.plugin.buildpipeline.ProjectForm
- Author:
- Centrum Systems Representation of a set of projects
-
Constructor Summary
ConstructorsConstructorDescriptionProjectForm(AbstractProject<?, ?> project, PipelineHeaderExtension columnHeaders) ProjectForm(String name) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProjectFormas(AbstractProject<?, ?> p, PipelineHeaderExtension columnHeaders) Wraps possibly nullAbstractProjectintoProjectForm.asJSON()Project as JSONbooleanGets a display value to determine whether a manual jobs 'trigger' button will be shown.intgetId()getName()getUrl()inthashCode()voidsetDisplayTrigger(Boolean display) Sets a display value to determine whether a manual jobs 'trigger' button will be shown.
-
Constructor Details
-
ProjectForm
- Parameters:
name- project name
-
ProjectForm
- Parameters:
project- project\columnHeaders- the column headers describing how to get build parameters
-
-
Method Details
-
as
Wraps possibly nullAbstractProjectintoProjectForm.- Parameters:
p- project to be wrapped.columnHeaders- column headers to grab build parameters from- Returns:
- possibly null.
-
getName
-
getHealth
-
getResult
-
getUrl
-
getLastSuccessfulBuildNumber
-
getLastSuccessfulBuildParams
-
getDependencies
-
getDisplayTrigger
Gets a display value to determine whether a manual jobs 'trigger' button will be shown. This is used along with isTriggerOnlyLatestJob property allow only the latest version of a job to run. Works by: Initially always defaulted to true. If isTriggerOnlyLatestJob is set to true then as the html code is rendered the first job which should show the trigger button will render and then a call will be made to 'setDisplayTrigger' to change the value to both so all future jobs will not display the trigger. see main.jelly- Returns:
- boolean whether to display or not
-
setDisplayTrigger
Sets a display value to determine whether a manual jobs 'trigger' button will be shown. This is used along with isTriggerOnlyLatestJob property allow only the latest version of a job to run. Works by: Initially always defaulted to true. If isTriggerOnlyLatestJob is set to true then as the html code is rendered the first job which should show the trigger button will render and then a call will be made to 'setDisplayTrigger' to change the value to both so all future jobs will not display the trigger. see main.jelly- Parameters:
display- - boolean to indicate whether the trigger button should be shown
-
hashCode
public int hashCode() -
equals
-
getId
public int getId() -
asJSON
Project as JSON- Returns:
- JSON string
-