public class Differential extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
decorate(hudson.model.AbstractBuild build,
String phabricatorURL) |
static Differential |
fromDiffID(String diffID,
LauncherFactory launcher)
Instantiate a differential from a diff ID (not differential ID)
|
String |
getBaseCommit()
Return the base commit of the diff
|
String |
getBranch()
Return the local branch name
|
String |
getBuildStartedMessage(hudson.EnvVars environment)
Get a build started message to post to phabricator
|
String |
getPhabricatorLink(String phabricatorURL) |
String |
getRevisionID() |
String |
getRevisionID(boolean formatted) |
String |
getSummaryMessage(String phabricatorURL)
Get the summary message
|
void |
harbormaster(String phid,
boolean pass)
Sets a harbormaster build status
|
net.sf.json.JSONObject |
postComment(String message) |
net.sf.json.JSONObject |
postComment(String message,
boolean silent,
String action)
Posts a comment to a differential
|
void |
setBuildFinished(hudson.model.Result result) |
void |
setBuildURL(hudson.EnvVars environment) |
void |
setDiffProperty(String name,
String value) |
public static Differential fromDiffID(String diffID, LauncherFactory launcher) throws IOException, InterruptedException
diffID - launcher - IOExceptionInterruptedExceptionpublic String getRevisionID(boolean formatted)
public String getRevisionID()
public void harbormaster(String phid, boolean pass) throws IOException, InterruptedException
phid - Phabricator object IDpass - whether or not the build passedIOExceptionInterruptedExceptionpublic net.sf.json.JSONObject postComment(String message, boolean silent, String action) throws IOException, InterruptedException
message - silent - whether or not to trigger an emailaction - phabricator comment action, e.g. 'resign', 'reject', 'none'IOExceptionInterruptedExceptionpublic net.sf.json.JSONObject postComment(String message) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String getSummaryMessage(String phabricatorURL)
phabricatorURL - public void decorate(hudson.model.AbstractBuild build,
String phabricatorURL)
public String getBuildStartedMessage(hudson.EnvVars environment)
environment - public String getBaseCommit()
public String getBranch()
public void setDiffProperty(String name, String value) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void setBuildURL(hudson.EnvVars environment)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void setBuildFinished(hudson.model.Result result)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.