|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
jenkins.plugins.svnmerge.FeatureBranchProperty
public class FeatureBranchProperty
JobProperty
for feature branch projects.
This associates the upstream project (with IntegratableProject
with this project.
Nested Class Summary | |
---|---|
static class |
FeatureBranchProperty.DescriptorImpl
|
static class |
FeatureBranchProperty.ItemListenerImpl
If an upstream is renamed, update the configuration accordingly. |
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
---|
hudson.tasks.BuildStep.PublisherList |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Field Summary |
---|
Fields inherited from class hudson.model.JobProperty |
---|
owner |
Fields inherited from interface hudson.tasks.BuildStep |
---|
BUILDERS, PUBLISHERS |
Constructor Summary | |
---|---|
FeatureBranchProperty(java.lang.String upstream)
|
Method Summary | |
---|---|
java.util.List<hudson.model.Action> |
getJobActions(hudson.model.AbstractProject<?,?> project)
|
hudson.model.AbstractProject<?,?> |
getOwner()
|
java.lang.String |
getUpstream()
|
hudson.model.AbstractProject<?,?> |
getUpstreamProject()
Gets the upstream project, or null if no such project was found. |
hudson.scm.SubversionSCM.ModuleLocation |
getUpstreamSubversionLocation()
|
org.tmatesoft.svn.core.SVNURL |
getUpstreamURL()
Gets the getUpstreamSubversionLocation() as SVNURL |
long |
integrate(hudson.model.TaskListener listener,
java.lang.String branchURL,
long branchRev,
java.lang.String commitMessage)
Perform a merge to the upstream that integrates changes in this branch. |
boolean |
prebuild(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener)
Just add the integration action. |
long |
rebase(hudson.model.TaskListener listener,
long upstreamRev)
Integrates changes made in the upstream into the branch at the workspace. |
Methods inherited from class hudson.model.JobProperty |
---|
getDescriptor, getJobAction, getJobOverrides, getProjectAction, getProjectActions, getRequiredMonitorService, getSubTasks, perform, reconfigure, setOwner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@DataBoundConstructor public FeatureBranchProperty(java.lang.String upstream)
Method Detail |
---|
public java.lang.String getUpstream()
public hudson.model.AbstractProject<?,?> getUpstreamProject()
public hudson.scm.SubversionSCM.ModuleLocation getUpstreamSubversionLocation()
public org.tmatesoft.svn.core.SVNURL getUpstreamURL() throws org.tmatesoft.svn.core.SVNException
getUpstreamSubversionLocation()
as SVNURL
org.tmatesoft.svn.core.SVNException
public hudson.model.AbstractProject<?,?> getOwner()
public java.util.List<hudson.model.Action> getJobActions(hudson.model.AbstractProject<?,?> project)
getJobActions
in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
public boolean prebuild(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener)
prebuild
in interface hudson.tasks.BuildStep
prebuild
in class hudson.model.JobProperty<hudson.model.AbstractProject<?,?>>
public long rebase(hudson.model.TaskListener listener, long upstreamRev) throws java.io.IOException, java.lang.InterruptedException
This computation uses the workspace of the project. First, we update the workspace to the tip of the branch (or else the commit will fail later), merge the changes from the upstream, then commit it. If the merge fails, we'll revert the workspace so that the next build can go smoothly.
listener
- Where the progress is sent.upstreamRev
- Revision of the upstream to rebase from.
If -1, use the latest.
java.io.IOException
java.lang.InterruptedException
public long integrate(hudson.model.TaskListener listener, java.lang.String branchURL, long branchRev, java.lang.String commitMessage) throws java.io.IOException, java.lang.InterruptedException
This computation uses the workspace of the project.
listener
- Where the progress is sent.branchURL
- URL of the branch to be integrated. If null, use the workspace URL.branchRev
- Revision of the branch to be integrated to the upstream.
If -1, use the current workspace revision.
java.io.IOException
java.lang.InterruptedException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |