Klasse PullRequestMonitoringPortlet
java.lang.Object
io.jenkins.plugins.monitoring.MonitorPortlet
io.jenkins.plugins.analysis.core.portlets.PullRequestMonitoringPortlet
public class PullRequestMonitoringPortlet
extends io.jenkins.plugins.monitoring.MonitorPortlet
A portlet that can be used for the
pull-request-monitoring dashboard.
It renders an interactive sunburst diagram for each
ResultAction
,
which is registered at the current users Run
.- Autor:
- Simon Symhoven
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
The factory for thePullRequestMonitoringPortlet
. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetId()
Get the json data for the simplified sunburst diagram (used by jelly view).int
int
Get the icon class of the quality gate.Get the human-readable description of quality gate.getTitle()
Get the json data for the hierarchical sunburst diagram (used by jelly view).boolean
Check ifAnalysisResult
issues have no new warnings.boolean
Check if action has a quality gate.boolean
boolean
isEmpty()
Check ifAnalysisResult
issues are empty.Von Klasse geerbte Methoden io.jenkins.plugins.monitoring.MonitorPortlet
toString
-
Konstruktordetails
-
PullRequestMonitoringPortlet
Creates a newPullRequestMonitoringPortlet
.- Parameter:
action
- the correspondingResultAction
.
-
-
Methodendetails
-
getTitle
- Angegeben von:
getTitle
in Klasseio.jenkins.plugins.monitoring.MonitorPortlet
-
getId
- Angegeben von:
getId
in Klasseio.jenkins.plugins.monitoring.MonitorPortlet
-
isDefault
public boolean isDefault()- Setzt außer Kraft:
isDefault
in Klasseio.jenkins.plugins.monitoring.MonitorPortlet
-
getPreferredWidth
public int getPreferredWidth()- Angegeben von:
getPreferredWidth
in Klasseio.jenkins.plugins.monitoring.MonitorPortlet
-
getPreferredHeight
public int getPreferredHeight()- Angegeben von:
getPreferredHeight
in Klasseio.jenkins.plugins.monitoring.MonitorPortlet
-
getIconUrl
- Setzt außer Kraft:
getIconUrl
in Klasseio.jenkins.plugins.monitoring.MonitorPortlet
-
getDetailViewUrl
- Setzt außer Kraft:
getDetailViewUrl
in Klasseio.jenkins.plugins.monitoring.MonitorPortlet
-
getWarningsModel
Get the json data for the hierarchical sunburst diagram (used by jelly view).- Gibt zurück:
- the data as json string.
-
getNoNewWarningsModel
Get the json data for the simplified sunburst diagram (used by jelly view).- Gibt zurück:
- the data as json string.
-
isEmpty
public boolean isEmpty()Check ifAnalysisResult
issues are empty.- Gibt zurück:
- true if
AnalysisResult
issues are empty, else false.
-
hasNoNewWarnings
public boolean hasNoNewWarnings()Check ifAnalysisResult
issues have no new warnings.- Gibt zurück:
- true if
AnalysisResult
issues have now new warnings.
-
hasQualityGate
public boolean hasQualityGate()Check if action has a quality gate.- Gibt zurück:
- true if action has a quality gate, else false.
-
getQualityGateResultClass
Get the icon class of the quality gate.- Gibt zurück:
- the image class of the Jenkins status icon.
-
getQualityGateResultDescription
Get the human-readable description of quality gate.- Gibt zurück:
- the description.
-