Klasse ReferenceBuild
java.lang.Object
io.jenkins.plugins.forensics.reference.ReferenceBuild
- Alle implementierten Schnittstellen:
Action
,ModelObject
,Serializable
,RunAction2
,org.kohsuke.stapler.StaplerProxy
public class ReferenceBuild
extends Object
implements RunAction2, Serializable, org.kohsuke.stapler.StaplerProxy
Stores the selected reference build for a given build. The reference build is a build in a different (or same)
Jenkins job that can be used to compute delta reports.
- Autor:
- Ullrich Hafner
- Siehe auch:
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final String
Indicates that no reference build has been found. -
Konstruktorübersicht
KonstruktorBeschreibungReferenceBuild
(Run<?, ?> owner, List<String> messages) Veraltet.ReferenceBuild
(Run<?, ?> owner, List<String> messages, Result requiredResult) Creates a new instance ofReferenceBuild
that indicates that no reference build has been found.ReferenceBuild
(Run<?, ?> owner, List<String> messages, Result requiredResult, Run<?, ?> referenceBuild) Creates a new instance ofReferenceBuild
that points to the specified reference build.ReferenceBuild
(Run<?, ?> owner, List<String> messages, Run<?, ?> referenceBuild) Veraltet.useReferenceBuild(Run, List, Result, Run)
instead -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungRun
<?, ?> getOwner()
Returns the actual reference build.Returns the ID of the reference build.static String
getReferenceBuildLink
(String referenceBuildId) Returns a link that can be used in Jelly views to navigate to the reference build.Returns a link that can be used in Jelly views to navigate to the reference build.Returns the required build result of the chosen reference build.Returns the detail view for the messages captured during the computation of the reference build.boolean
Determines if a reference build has been recorded or not.void
onAttached
(Run<?, ?> run) void
protected Object
Called after deserialization to retain backward compatibility.
-
Felddetails
-
NO_REFERENCE_BUILD
Indicates that no reference build has been found. Note that this value is not used when the build has been found initially but has been deleted afterward.- Siehe auch:
-
-
Konstruktordetails
-
ReferenceBuild
Creates a new instance ofReferenceBuild
that indicates that no reference build has been found.- Parameter:
owner
- the current run as the owner of this actionmessages
- messages that show the steps the resolution processrequiredResult
- the required build result of the chosen reference build
-
ReferenceBuild
public ReferenceBuild(Run<?, ?> owner, List<String> messages, Result requiredResult, Run<?, ?> referenceBuild) Creates a new instance ofReferenceBuild
that points to the specified reference build.- Parameter:
owner
- the current build as the owner of this actionmessages
- messages that show the steps of the resolution processrequiredResult
- the required build result of the chosen reference buildreferenceBuild
- the found reference build
-
ReferenceBuild
Veraltet.useReferenceBuild(Run, List, Result)
insteadCreates a new instance ofReferenceBuild
that indicates that no reference build has been found.- Parameter:
owner
- the current run as the owner of this actionmessages
- messages that show the steps the resolution process
-
ReferenceBuild
Veraltet.useReferenceBuild(Run, List, Result, Run)
insteadCreates a new instance ofReferenceBuild
that points to the specified reference build.- Parameter:
owner
- the current build as the owner of this actionmessages
- messages that show the steps of the resolution processreferenceBuild
- the found reference build
-
-
Methodendetails
-
getReferenceBuildLink
Returns a link that can be used in Jelly views to navigate to the reference build.- Parameter:
referenceBuildId
- ID of the reference build- Gibt zurück:
- the link
-
readResolve
Called after deserialization to retain backward compatibility.- Gibt zurück:
- this
-
onAttached
- Angegeben von:
onAttached
in SchnittstelleRunAction2
-
onLoad
- Angegeben von:
onLoad
in SchnittstelleRunAction2
-
getOwner
-
getMessages
-
getReferenceLink
Returns a link that can be used in Jelly views to navigate to the reference build.- Gibt zurück:
- the link
-
hasReferenceBuild
public boolean hasReferenceBuild()Determines if a reference build has been recorded or not.- Gibt zurück:
true
if a reference build has been recorded,false
if not
-
getReferenceBuildId
Returns the ID of the reference build. If no reference build is available, then the constant stringNO_REFERENCE_BUILD
will be returned.- Gibt zurück:
- the ID of the reference build
-
getReferenceBuild
Returns the actual reference build. Note that a reference build might be not available anymore, because it has been deleted in the meantime.- Gibt zurück:
- the reference build, if still available
-
getRequiredResult
Returns the required build result of the chosen reference build.- Gibt zurück:
- the required build result
-
getDisplayName
- Angegeben von:
getDisplayName
in SchnittstelleAction
- Angegeben von:
getDisplayName
in SchnittstelleModelObject
-
getIconFileName
- Angegeben von:
getIconFileName
in SchnittstelleAction
-
getUrlName
- Angegeben von:
getUrlName
in SchnittstelleAction
-
getTarget
Returns the detail view for the messages captured during the computation of the reference build.- Angegeben von:
getTarget
in Schnittstelleorg.kohsuke.stapler.StaplerProxy
- Gibt zurück:
- the detail view for the messages
-
ReferenceBuild(Run, List, Result)
instead