Package com.coravy.hudson.plugins.github
Class GithubProjectProperty
- All Implemented Interfaces:
ExtensionPoint,Describable<JobProperty<?>>,ReconfigurableDescribable<JobProperty<?>>,BuildStep
Stores the github related project properties.
- URL to the GitHub project - Build status context name
- Author:
- Stefan Saasen
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.JobProperty
ownerFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdisplayNameFor(Job<?, ?> job) Extracts value of display name from given job, or just returns full name if field or prop is not definedSame asgetProjectUrl(), but with a property name and type which match those used in theGithubProjectProperty(java.lang.String)constructor.voidsetDisplayName(String displayName) Methods inherited from class hudson.model.JobProperty
getDescriptor, getJobAction, getJobActions, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, prebuild, reconfigure, reconfigure, setOwner
-
Constructor Details
-
GithubProjectProperty
-
-
Method Details
-
getProjectUrlStr
Same asgetProjectUrl(), but with a property name and type which match those used in theGithubProjectProperty(java.lang.String)constructor. Should have been calledgetProjectUrland that method called something else (such asgetNormalizedProjectUrl), but that cannot be done compatibly now. -
getProjectUrl
- Returns:
- the projectUrl
-
getDisplayName
- Since:
- 1.14.1
- See Also:
-
displayName
-
setDisplayName
- Since:
- 1.14.1
-
displayNameFor
Extracts value of display name from given job, or just returns full name if field or prop is not defined- Parameters:
job- project which wants to get current context name to use in GH status API- Returns:
- display name or full job name if field is not defined
- Since:
- 1.14.1
-