jenkins.plugins.svnmerge
Class IntegrateAction
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.TaskAction
jenkins.plugins.svnmerge.AbstractSvnmergeTaskAction<IntegrateSetting>
jenkins.plugins.svnmerge.IntegrateAction
- All Implemented Interfaces:
- hudson.model.Action, hudson.model.BuildBadgeAction, hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem
public class IntegrateAction
- extends AbstractSvnmergeTaskAction<IntegrateSetting>
- implements hudson.model.BuildBadgeAction
AbstractBuild-level action to integrate
the build to upstream branch.
- Author:
- Kohsuke Kawaguchi
|
Field Summary |
hudson.model.AbstractBuild<?,?> |
build
|
| Fields inherited from class hudson.model.TaskAction |
log, workerThread |
| Methods inherited from class hudson.model.TaskAction |
doClearError, doProgressiveHtml, doProgressiveLog, getSearchUrl, getWorkerThread, obtainLog |
| Methods inherited from class hudson.model.AbstractModelObject |
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
build
public final hudson.model.AbstractBuild<?,?> build
IntegrateAction
public IntegrateAction(hudson.model.AbstractBuild<?,?> build)
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName in interface hudson.model.Action
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName in interface hudson.model.Action- Specified by:
getDisplayName in interface hudson.model.ModelObject
getUrlName
public String getUrlName()
- Specified by:
getUrlName in interface hudson.model.Action
getProject
public hudson.model.AbstractProject<?,?> getProject()
- Specified by:
getProject in class AbstractSvnmergeTaskAction<IntegrateSetting>
getACL
protected hudson.security.ACL getACL()
- Specified by:
getACL in class hudson.model.TaskAction
isIntegrated
public boolean isIntegrated()
isIntegrationAttempted
public boolean isIntegrationAttempted()
getIntegratedRevision
public Long getIntegratedRevision()
getIntegrationSource
public Long getIntegrationSource()
getLogFile
public File getLogFile()
- Specified by:
getLogFile in class AbstractSvnmergeTaskAction<IntegrateSetting>
createTask
protected AbstractSvnmergeTaskAction.TaskImpl createTask(IntegrateSetting s)
throws IOException
- Specified by:
createTask in class AbstractSvnmergeTaskAction<IntegrateSetting>
- Throws:
IOException
createParams
protected IntegrateSetting createParams(org.kohsuke.stapler.StaplerRequest req)
throws IOException
- Specified by:
createParams in class AbstractSvnmergeTaskAction<IntegrateSetting>
- Throws:
IOException
getSvnInfo
public hudson.scm.SubversionSCM.SvnInfo getSvnInfo()
- URL and revision to be integrated from this action.
perform
public long perform(hudson.model.TaskListener listener,
hudson.scm.SubversionSCM.SvnInfo src)
throws IOException,
InterruptedException
- Parameters:
src - We are taking this revision and merge it into the upstream.
- Throws:
IOException
InterruptedException
getUpstreamBuildNumber
public int getUpstreamBuildNumber()
throws IOException
- Gets the build number of the upstream where this integration is built.
Since the relevant information might be already lost when this method
is called, this code needs to be defensive.
- Returns:
- -1
if not integrated yet or this information is lost.
- Throws:
IOException
getFingerprintKey
public String getFingerprintKey()
- This is the md5 hash to keep track of where this change is integrated.
doCancelQueue
public void doCancelQueue(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
- Cancels an integration task in the queue, if any.
- Throws:
IOException
javax.servlet.ServletException
decidePage
protected String decidePage()
- Which page to render?
- Specified by:
decidePage in class AbstractSvnmergeTaskAction<IntegrateSetting>
getIntegrationFingerprint
public static hudson.model.Fingerprint getIntegrationFingerprint(hudson.scm.ChangeLogSet.Entry changeEntry)
throws IOException
- Checks if the given
ChangeLogSet.Entry represents a commit from
integration. If so,
return its fingerprint.
Otherwise null.
- Throws:
IOException
Copyright © 2004-2012. All Rights Reserved.