public class Differential extends Object
| Constructor and Description |
|---|
Differential(String diffID,
LauncherFactory launcher,
String conduitToken,
String arcPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
decorate(hudson.model.AbstractBuild build,
String phabricatorURL) |
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
|
public Differential(String diffID, LauncherFactory launcher, String conduitToken, String arcPath) throws IOException, InterruptedException
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()
Copyright © 2004-2015. All Rights Reserved.