public class IntegrateAction extends AbstractSvnmergeTaskAction<IntegrateSetting> implements hudson.model.BuildBadgeAction
AbstractBuild-level action to integrate
the build to upstream branch.AbstractSvnmergeTaskAction.TaskImpl, AbstractSvnmergeTaskAction.WorkerThread| Modifier and Type | Field and Description |
|---|---|
hudson.model.AbstractBuild<?,?> |
build |
| Constructor and Description |
|---|
IntegrateAction(hudson.model.AbstractBuild<?,?> build) |
| Modifier and Type | Method and Description |
|---|---|
protected IntegrateSetting |
createParams(org.kohsuke.stapler.StaplerRequest req) |
protected AbstractSvnmergeTaskAction.TaskImpl |
createTask(IntegrateSetting s) |
protected String |
decidePage()
Which page to render?
|
void |
doCancelQueue(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Cancels an integration task in the queue, if any.
|
protected hudson.security.ACL |
getACL() |
String |
getDisplayName() |
String |
getFingerprintKey()
This is the md5 hash to keep track of where this change is integrated.
|
String |
getIconFileName() |
Long |
getIntegratedRevision() |
static hudson.model.Fingerprint |
getIntegrationFingerprint(hudson.scm.ChangeLogSet.Entry changeEntry)
Checks if the given
ChangeLogSet.Entry represents a commit from
integration. |
Long |
getIntegrationSource() |
File |
getLogFile() |
hudson.model.AbstractProject<?,?> |
getProject() |
hudson.scm.SubversionSCM.SvnInfo |
getSvnInfo()
URL and revision to be integrated from this action.
|
int |
getUpstreamBuildNumber()
Gets the build number of the upstream where this integration is built.
|
String |
getUrlName() |
boolean |
isIntegrated() |
boolean |
isIntegrationAttempted() |
long |
perform(hudson.model.TaskListener listener,
hudson.scm.SubversionSCM.SvnInfo src) |
doIndex, doPerform, getLog, getPermission, getProperty, performAsyncdoClearError, doProgressiveHtml, doProgressiveLog, getSearchUrl, getWorkerThread, obtainLogpublic 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()
getProject in class AbstractSvnmergeTaskAction<IntegrateSetting>protected hudson.security.ACL getACL()
getACL in class hudson.model.TaskActionpublic boolean isIntegrated()
public boolean isIntegrationAttempted()
public Long getIntegratedRevision()
public Long getIntegrationSource()
public File getLogFile()
getLogFile in class AbstractSvnmergeTaskAction<IntegrateSetting>protected AbstractSvnmergeTaskAction.TaskImpl createTask(IntegrateSetting s) throws IOException
createTask in class AbstractSvnmergeTaskAction<IntegrateSetting>IOExceptionprotected IntegrateSetting createParams(org.kohsuke.stapler.StaplerRequest req) throws IOException
createParams in class AbstractSvnmergeTaskAction<IntegrateSetting>IOExceptionpublic hudson.scm.SubversionSCM.SvnInfo getSvnInfo()
public long perform(hudson.model.TaskListener listener,
hudson.scm.SubversionSCM.SvnInfo src)
throws IOException,
InterruptedException
src - We are taking this revision and merge it into the upstream.IOExceptionInterruptedExceptionpublic int getUpstreamBuildNumber()
throws IOException
Since the relevant information might be already lost when this method is called, this code needs to be defensive.
IOExceptionpublic String getFingerprintKey()
public void doCancelQueue(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected String decidePage()
decidePage in class AbstractSvnmergeTaskAction<IntegrateSetting>public static hudson.model.Fingerprint getIntegrationFingerprint(hudson.scm.ChangeLogSet.Entry changeEntry)
throws IOException
ChangeLogSet.Entry represents a commit from
integration. If so,
return its fingerprint.
Otherwise null.IOExceptionCopyright © 2004-2014. All Rights Reserved.