public abstract class AbstractScmCommitPhase extends AbstractReleasePhase
Modifier and Type | Field and Description |
---|---|
protected boolean |
afterBranchOrTag |
protected boolean |
beforeBranchOrTag |
protected String |
descriptorCommentGetter
The getter in the descriptor for the comment.
|
protected ScmRepositoryConfigurator |
scmRepositoryConfigurator
Tool that gets a configured SCM repository from release configuration.
|
Constructor and Description |
---|
AbstractScmCommitPhase() |
Modifier and Type | Method and Description |
---|---|
protected String |
createMessage(List<MavenProject> reactorProjects,
ReleaseDescriptor releaseDescriptor)
createMessage.
|
protected static List<File> |
createPomFiles(ReleaseDescriptor releaseDescriptor,
List<MavenProject> reactorProjects)
createPomFiles.
|
protected static List<File> |
createPomFiles(ReleaseDescriptor releaseDescriptor,
MavenProject project)
createPomFiles.
|
ReleaseResult |
execute(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<MavenProject> reactorProjects) |
protected void |
performCheckins(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<MavenProject> reactorProjects,
String message)
performCheckins.
|
protected abstract void |
runLogic(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<MavenProject> reactorProjects,
ReleaseResult result,
boolean simulating)
runLogic.
|
ReleaseResult |
simulate(ReleaseDescriptor releaseDescriptor,
ReleaseEnvironment releaseEnvironment,
List<MavenProject> reactorProjects) |
protected void |
simulateCheckins(ReleaseDescriptor releaseDescriptor,
List<MavenProject> reactorProjects,
ReleaseResult result,
String message)
simulateCheckins.
|
protected void |
validateConfiguration(ReleaseDescriptor releaseDescriptor)
validateConfiguration.
|
getReleaseResultSuccess, logDebug, logDebug, logError, logInfo, logWarn
protected boolean beforeBranchOrTag
protected boolean afterBranchOrTag
protected ScmRepositoryConfigurator scmRepositoryConfigurator
protected String descriptorCommentGetter
public ReleaseResult execute(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
public ReleaseResult simulate(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<MavenProject> reactorProjects) throws ReleaseExecutionException, ReleaseFailureException
protected abstract void runLogic(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<MavenProject> reactorProjects, ReleaseResult result, boolean simulating) throws ReleaseScmCommandException, ReleaseExecutionException, ReleaseScmRepositoryException
runLogic.
releaseDescriptor
- a ReleaseDescriptor
objectreleaseEnvironment
- a ReleaseEnvironment
objectreactorProjects
- a List
objectresult
- a ReleaseResult
objectsimulating
- a booleanReleaseScmCommandException
- if any.ReleaseExecutionException
- if any.ReleaseScmRepositoryException
- if any.protected void performCheckins(ReleaseDescriptor releaseDescriptor, ReleaseEnvironment releaseEnvironment, List<MavenProject> reactorProjects, String message) throws ReleaseScmRepositoryException, ReleaseExecutionException, ReleaseScmCommandException
performCheckins.
releaseDescriptor
- a ReleaseDescriptor
objectreleaseEnvironment
- a ReleaseEnvironment
objectreactorProjects
- a List
objectmessage
- a String
objectReleaseScmRepositoryException
- if any.ReleaseExecutionException
- if any.ReleaseScmCommandException
- if any.protected void simulateCheckins(ReleaseDescriptor releaseDescriptor, List<MavenProject> reactorProjects, ReleaseResult result, String message)
simulateCheckins.
releaseDescriptor
- a ReleaseDescriptor
objectreactorProjects
- a List
objectresult
- a ReleaseResult
objectmessage
- a String
objectprotected void validateConfiguration(ReleaseDescriptor releaseDescriptor) throws ReleaseFailureException
validateConfiguration.
releaseDescriptor
- a ReleaseDescriptor
objectReleaseFailureException
- if any.protected String createMessage(List<MavenProject> reactorProjects, ReleaseDescriptor releaseDescriptor) throws ReleaseExecutionException
createMessage.
reactorProjects
- a List
objectreleaseDescriptor
- a ReleaseDescriptor
objectString
objectReleaseExecutionException
- if any.protected static List<File> createPomFiles(ReleaseDescriptor releaseDescriptor, MavenProject project)
createPomFiles.
releaseDescriptor
- a ReleaseDescriptor
objectproject
- a MavenProject
objectList
objectprotected static List<File> createPomFiles(ReleaseDescriptor releaseDescriptor, List<MavenProject> reactorProjects)
createPomFiles.
releaseDescriptor
- a ReleaseDescriptor
objectreactorProjects
- a List
objectList
objectCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.