public class TrendGraph extends Object implements jenkins.model.RunAction2, org.kohsuke.stapler.StaplerProxy
| Modifier and Type | Class and Description |
|---|---|
static class |
TrendGraph.ResultData
Data container to collect numbers of test results of TPT test execuiton for build previous
builds.
|
| Constructor and Description |
|---|
TrendGraph(hudson.model.AbstractProject<?,?> project)
Creates a new TrendGraph
|
| Modifier and Type | Method and Description |
|---|---|
void |
doDynamic(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
This method is called everytime the page is refreshed.
|
String |
getDisplayName() |
int |
getError() |
int |
getFailed() |
ArrayList<Integer> |
getFailedBuilds() |
ArrayList<TrendGraph.ResultData> |
getHistoryData() |
String |
getIconFileName() |
int |
getInconclusive() |
int |
getPassed() |
hudson.model.AbstractProject<?,?> |
getProject() |
hudson.model.Run<?,?> |
getRun() |
Object |
getTarget() |
String |
getUrlName() |
boolean |
isTrustSlavesAndUsers() |
void |
onAttached(hudson.model.Run<?,?> run) |
void |
onLoad(hudson.model.Run<?,?> run) |
void |
setError(int error)
Set the number of tests with execution error of the last build of the jenkins project this
trend graph belongs to.
|
void |
setFailed(int failed)
Set the number of failed tests of the last build of the jenkins project this trend graph
belongs to.
|
void |
setFailedBuilds(ArrayList<Integer> failedBuilds)
Set the number of failed builds of the jenkins project this trend graph belongs to
|
void |
setInconclusive(int inconclusive)
Set the number of inconclusive tests of the last build of the jenkins project this trend graph
belongs to.
|
void |
setPassed(int passed)
Set the number of passed tests of the last build of the jenkins project this trend graph
belongs to.
|
void |
setProject(hudson.model.AbstractProject<?,?> project)
Set the Jenkins project this Trendgraph belongs to
|
void |
setRun(hudson.model.Run<?,?> run)
Set the concrete run this trend graph belongs to
|
public TrendGraph(hudson.model.AbstractProject<?,?> project)
project - The Jenkins project this Trendgraph belongs to.public boolean isTrustSlavesAndUsers()
public String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic hudson.model.AbstractProject<?,?> getProject()
public void setProject(hudson.model.AbstractProject<?,?> project)
project - The Jenkins project this Trendgraph belongs topublic void onAttached(hudson.model.Run<?,?> run)
onAttached in interface jenkins.model.RunAction2public void onLoad(hudson.model.Run<?,?> run)
onLoad in interface jenkins.model.RunAction2public hudson.model.Run<?,?> getRun()
public void setRun(hudson.model.Run<?,?> run)
run - The concrete run this trend graph belongs topublic ArrayList<Integer> getFailedBuilds()
public void setFailedBuilds(ArrayList<Integer> failedBuilds)
failedBuilds - The number of failed builds of the jenkins project this trend graph belongs topublic int getPassed()
public void setPassed(int passed)
passed - TThe number of passed tests of the last build of the jenkins project this trend graph
belongs to.public int getFailed()
public void setFailed(int failed)
failed - The number of failed tests of the last build of the jenkins project this trend graph
belongs to.public int getError()
public void setError(int error)
error - The number of tests with execution error of the last build of the jenkins project this
trend graph belongs to.public int getInconclusive()
public void setInconclusive(int inconclusive)
inconclusive - Set the number of inconclusive tests of the last build of the jenkins project this
trend graph belongs to.public ArrayList<TrendGraph.ResultData> getHistoryData()
public Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic void doDynamic(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException,
InterruptedException
req - The requestrsp - The responseIOException - if the response could not be generatedjavax.servlet.ServletException - if the response could not be generatedInterruptedException - if the job is cancelledCopyright © 2016–2018 PikeTec GmbH. All rights reserved.