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, performAsync
doClearError, doProgressiveHtml, doProgressiveLog, getSearchUrl, getWorkerThread, obtainLog
public String getIconFileName()
getIconFileName
in interface hudson.model.Action
public String getDisplayName()
getDisplayName
in interface hudson.model.Action
getDisplayName
in interface hudson.model.ModelObject
public String getUrlName()
getUrlName
in interface hudson.model.Action
public hudson.model.AbstractProject<?,?> getProject()
getProject
in class AbstractSvnmergeTaskAction<IntegrateSetting>
protected hudson.security.ACL getACL()
getACL
in class hudson.model.TaskAction
public 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>
IOException
protected IntegrateSetting createParams(org.kohsuke.stapler.StaplerRequest req) throws IOException
createParams
in class AbstractSvnmergeTaskAction<IntegrateSetting>
IOException
public 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.IOException
InterruptedException
public int getUpstreamBuildNumber() throws IOException
Since the relevant information might be already lost when this method is called, this code needs to be defensive.
IOException
public String getFingerprintKey()
public void doCancelQueue(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected 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.IOException
Copyright © 2004-2014. All Rights Reserved.