Package hudson.plugins.git
Class UserMergeOptions
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<UserMergeOptions>
-
- hudson.plugins.git.UserMergeOptions
-
- All Implemented Interfaces:
Describable<UserMergeOptions>
,Serializable
public class UserMergeOptions extends AbstractDescribableImpl<UserMergeOptions> implements Serializable
User-provided configuration that dictates which branch in which repository we'll be merging (to the commit being built.)- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserMergeOptions.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description UserMergeOptions(PreBuildMergeOptions pbm)
Construct UserMergeOptions from PreBuildMergeOptions.UserMergeOptions(String mergeTarget)
UserMergeOptions(String mergeRemote, String mergeTarget, String mergeStrategy)
Deprecated.use the new constructor that allows to set the fast forward mode.UserMergeOptions(String mergeRemote, String mergeTarget, String mergeStrategy, org.jenkinsci.plugins.gitclient.MergeCommand.GitPluginFastForwardMode fastForwardMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
org.jenkinsci.plugins.gitclient.MergeCommand.GitPluginFastForwardMode
getFastForwardMode()
String
getMergeRemote()
Repository name, such as 'origin' that designates which repository the branch lives in.org.jenkinsci.plugins.gitclient.MergeCommand.Strategy
getMergeStrategy()
String
getMergeTarget()
Ref in the repository that becomes the input of the merge.String
getRef()
Ref in the repository that becomes the input of the merge, a slash separated concatenation of merge remote and merge target.int
hashCode()
void
setFastForwardMode(org.jenkinsci.plugins.gitclient.MergeCommand.GitPluginFastForwardMode fastForwardMode)
void
setMergeRemote(String mergeRemote)
void
setMergeStrategy(org.jenkinsci.plugins.gitclient.MergeCommand.Strategy mergeStrategy)
String
toString()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
UserMergeOptions
@Deprecated public UserMergeOptions(String mergeRemote, String mergeTarget, String mergeStrategy)
Deprecated.use the new constructor that allows to set the fast forward mode.- Parameters:
mergeRemote
- remote name used for mergemergeTarget
- remote branch to be merged into current branchmergeStrategy
- merge strategy to be used
-
UserMergeOptions
public UserMergeOptions(String mergeRemote, String mergeTarget, String mergeStrategy, org.jenkinsci.plugins.gitclient.MergeCommand.GitPluginFastForwardMode fastForwardMode)
- Parameters:
mergeRemote
- remote name used for mergemergeTarget
- remote branch to be merged into current branchmergeStrategy
- merge strategyfastForwardMode
- fast forward mode
-
UserMergeOptions
@DataBoundConstructor public UserMergeOptions(String mergeTarget)
-
UserMergeOptions
public UserMergeOptions(PreBuildMergeOptions pbm)
Construct UserMergeOptions from PreBuildMergeOptions.- Parameters:
pbm
- pre-build merge options used to construct UserMergeOptions
-
-
Method Detail
-
getMergeRemote
public String getMergeRemote()
Repository name, such as 'origin' that designates which repository the branch lives in.- Returns:
- repository name
-
setMergeRemote
@DataBoundSetter public void setMergeRemote(String mergeRemote)
-
getMergeTarget
public String getMergeTarget()
Ref in the repository that becomes the input of the merge. Normally a branch name like 'master'.- Returns:
- branch name from which merge will be performed
-
getRef
public String getRef()
Ref in the repository that becomes the input of the merge, a slash separated concatenation of merge remote and merge target.- Returns:
- ref from which merge will be performed
-
getMergeStrategy
public org.jenkinsci.plugins.gitclient.MergeCommand.Strategy getMergeStrategy()
-
setMergeStrategy
@DataBoundSetter public void setMergeStrategy(org.jenkinsci.plugins.gitclient.MergeCommand.Strategy mergeStrategy)
-
getFastForwardMode
public org.jenkinsci.plugins.gitclient.MergeCommand.GitPluginFastForwardMode getFastForwardMode()
-
setFastForwardMode
@DataBoundSetter public void setFastForwardMode(org.jenkinsci.plugins.gitclient.MergeCommand.GitPluginFastForwardMode fastForwardMode)
-
-