Class BuildEvent
- java.lang.Object
-
- hudson.plugins.collabnet.orchestrate.BuildEvent
-
public class BuildEvent extends Object
Converts a build to JSON for importing as a build activity into WEBR.
-
-
Constructor Summary
Constructors Constructor Description BuildEvent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static net.sf.json.JSONObject
constructJson(Run build, TaskListener listener, String status, boolean excludeCommitInfo)
static String
convertTime(Date time)
protected static Action
getActionByClassName(Run run, String actionName)
static net.sf.json.JSONObject
getBuildData(Run run, TaskListener listener, String status, boolean excludeCommitInfo)
static URI
getBuildURI(Run run)
protected static URI
getGitRepository(Run run, SCM scm)
static net.sf.json.JSONObject
getRepositoryInfo(Run run, TaskListener listener)
static net.sf.json.JSONObject
getRevisions(Run run, TaskListener listener)
static String
getStatus(Run run)
protected static URI
getSVNRepository(Run run, TaskListener listener)
static net.sf.json.JSONObject
getTestResults(Run run)
static URI
stripUserAndPassword(String repositoryString)
static net.sf.json.JSONObject
toJson(Object object)
-
-
-
Method Detail
-
constructJson
public static net.sf.json.JSONObject constructJson(Run build, TaskListener listener, String status, boolean excludeCommitInfo) throws IOException
- Throws:
IOException
-
toJson
public static net.sf.json.JSONObject toJson(Object object) throws IOException
- Throws:
IOException
-
getBuildData
public static net.sf.json.JSONObject getBuildData(Run run, TaskListener listener, String status, boolean excludeCommitInfo) throws IOException
- Throws:
IOException
-
getTestResults
public static net.sf.json.JSONObject getTestResults(Run run)
-
getBuildURI
public static URI getBuildURI(Run run) throws URISyntaxException
- Throws:
URISyntaxException
-
getRevisions
public static net.sf.json.JSONObject getRevisions(Run run, TaskListener listener) throws IOException
- Throws:
IOException
-
getRepositoryInfo
public static net.sf.json.JSONObject getRepositoryInfo(Run run, TaskListener listener) throws IOException
- Throws:
IOException
-
getSVNRepository
protected static URI getSVNRepository(Run run, TaskListener listener) throws IOException
- Throws:
IOException
-
getGitRepository
protected static URI getGitRepository(Run run, SCM scm) throws IOException
- Throws:
IOException
-
-