Class WorkflowReleaseContextService
java.lang.Object
fr.paris.lutece.plugins.releaser.service.WorkflowReleaseContextService
- All Implemented Interfaces:
IWorkflowReleaseContextService
The Class WorkflowReleaseContextService.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintAdds the workflow release context.voidbumpDevelopAfterReleaseFromTag(WorkflowReleaseContext context, Locale locale) Bump the develop* branch to the next snapshot version : checkout develop*, compute the next patch snapshot, set the pom version, commit and push.voidcloneRepository(WorkflowReleaseContext context, Locale locale) Clone repository.voidcreateDockerImage(WorkflowReleaseContext context, Locale locale) Create docker image.voiddeployReleaseFromTag(WorkflowReleaseContext context, Locale locale) Deploy the artifacts of the new stable tag to Nexus, from the detached HEAD prepared byIWorkflowReleaseContextService.prepareReleaseFromTag(fr.paris.lutece.plugins.releaser.business.WorkflowReleaseContext, java.util.Locale).voidRuns a task on the release thread pool.intgetIdWorkflow(WorkflowReleaseContext context) Gets the id workflow.getListWorkflowReleaseContextHistory(String strArtifactId) Gets the list workflow release context history.Gets the service.getWorkflowReleaseContext(int nIdContext) Gets the workflow release context.getWorkflowReleaseContextHistory(int nIdContext) Gets the workflow release context history.voidinit()Inits the.booleanisReleaseInProgress(String strArtifactId) Checks if is release in progress.voidmarkReleaseIntegratedInDevelop(WorkflowReleaseContext context, Locale locale) On develop*, merge the stable tag of the release with the "ours" strategy and push : records the release commit as an ancestor of develop* without changing its content, so that the next merge back into master* has the release as common base and stays clean.voidmergeDevelopMaster(WorkflowReleaseContext context, Locale locale) Merge develop master.voidprepareReleaseFromTag(WorkflowReleaseContext context, Locale locale) Prepare a release starting from an existing pre-release tag : checkout the source tag in detached HEAD, set the stable version in the pom (and in plugin xml / core xml / AppInfo if core), commit, create the stable tag locally and push only the new tag to origin.voidreleasePerformComponent(WorkflowReleaseContext context, Locale locale) Release perform component.voidreleasePerformSite(WorkflowReleaseContext context, Locale locale) Release perform site.voidreleasePrepareComponent(WorkflowReleaseContext context, Locale locale) Release prepare component.voidreleasePrepareSite(WorkflowReleaseContext context, Locale locale) Release prepare site.voidSave workflow release context.voidstartReleaseInProgress(String strArtifactId) Start release in progress.voidstartWorkflowReleaseContext(WorkflowReleaseContext context, int nIdWorkflow, Locale locale, javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.business.user.AdminUser user) Start workflow release context.voidstopReleaseInProgress(String strArtifactId) Stop release in progress.voidupdateBugtrackerVersions(WorkflowReleaseContext context, Locale locale) Update bugtracker versions.voidupdateMasterAfterReleaseFromTag(WorkflowReleaseContext context, Locale locale) Merge the stable tag of the release into the master* branch counterpart and push, exactly as the classic release does : master* never carries a commit of its own, so the next merge back from develop* stays clean.
-
Constructor Details
-
WorkflowReleaseContextService
public WorkflowReleaseContextService()
-
-
Method Details
-
addWorkflowReleaseContext
Adds the workflow release context.- Specified by:
addWorkflowReleaseContextin interfaceIWorkflowReleaseContextService- Parameters:
context- the context- Returns:
- the int
-
getWorkflowReleaseContext
Gets the workflow release context.- Specified by:
getWorkflowReleaseContextin interfaceIWorkflowReleaseContextService- Parameters:
nIdContext- the n id context- Returns:
- the workflow release context
-
saveWorkflowReleaseContext
Save workflow release context.- Specified by:
saveWorkflowReleaseContextin interfaceIWorkflowReleaseContextService- Parameters:
context- the context
-
getWorkflowReleaseContextHistory
Gets the workflow release context history.- Parameters:
nIdContext- the n id context- Returns:
- the workflow release context history
-
getListWorkflowReleaseContextHistory
Gets the list workflow release context history.- Specified by:
getListWorkflowReleaseContextHistoryin interfaceIWorkflowReleaseContextService- Parameters:
strArtifactId- the str artifact id- Returns:
- the list workflow release context history
-
getIdWorkflow
Gets the id workflow.- Specified by:
getIdWorkflowin interfaceIWorkflowReleaseContextService- Parameters:
context- the context- Returns:
- the id workflow
-
getService
Gets the service.- Returns:
- the service
-
mergeDevelopMaster
Merge develop master.- Specified by:
mergeDevelopMasterin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
releasePrepareComponent
Description copied from interface:IWorkflowReleaseContextServiceRelease prepare component.- Specified by:
releasePrepareComponentin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
releasePerformComponent
Release perform component.- Specified by:
releasePerformComponentin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
cloneRepository
Clone repository.- Specified by:
cloneRepositoryin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
releasePrepareSite
Release prepare site.- Specified by:
releasePrepareSitein interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
updateBugtrackerVersions
Update bugtracker versions.- Specified by:
updateBugtrackerVersionsin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
startWorkflowReleaseContext
public void startWorkflowReleaseContext(WorkflowReleaseContext context, int nIdWorkflow, Locale locale, javax.servlet.http.HttpServletRequest request, fr.paris.lutece.portal.business.user.AdminUser user) Start workflow release context.- Specified by:
startWorkflowReleaseContextin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextnIdWorkflow- the n id workflowlocale- the localerequest- the requestuser- the user
-
init
public void init()Inits the.- Specified by:
initin interfaceIWorkflowReleaseContextService
-
execute
Runs a task on the release thread pool.- Specified by:
executein interfaceIWorkflowReleaseContextService- Parameters:
task- the task
-
startReleaseInProgress
Start release in progress.- Specified by:
startReleaseInProgressin interfaceIWorkflowReleaseContextService- Parameters:
strArtifactId- the str artifact id
-
stopReleaseInProgress
Stop release in progress.- Specified by:
stopReleaseInProgressin interfaceIWorkflowReleaseContextService- Parameters:
strArtifactId- the str artifact id
-
isReleaseInProgress
Checks if is release in progress.- Specified by:
isReleaseInProgressin interfaceIWorkflowReleaseContextService- Parameters:
strArtifactId- the str artifact id- Returns:
- true, if is release in progress
-
releasePerformSite
Release perform site.- Specified by:
releasePerformSitein interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
createDockerImage
Create docker image.- Specified by:
createDockerImagein interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
prepareReleaseFromTag
Prepare a release starting from an existing pre-release tag : checkout the source tag in detached HEAD, set the stable version in the pom (and in plugin xml / core xml / AppInfo if core), commit, create the stable tag locally and push only the new tag to origin.- Specified by:
prepareReleaseFromTagin interfaceIWorkflowReleaseContextService- Parameters:
context- the context (must carry the sourceTag)locale- the locale
-
deployReleaseFromTag
Deploy the artifacts of the new stable tag to Nexus, from the detached HEAD prepared byIWorkflowReleaseContextService.prepareReleaseFromTag(fr.paris.lutece.plugins.releaser.business.WorkflowReleaseContext, java.util.Locale).- Specified by:
deployReleaseFromTagin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
updateMasterAfterReleaseFromTag
Merge the stable tag of the release into the master* branch counterpart and push, exactly as the classic release does : master* never carries a commit of its own, so the next merge back from develop* stays clean. Skipped if there is no master* counterpart for the chosen develop* branch.- Specified by:
updateMasterAfterReleaseFromTagin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
bumpDevelopAfterReleaseFromTag
Bump the develop* branch to the next snapshot version : checkout develop*, compute the next patch snapshot, set the pom version, commit and push.- Specified by:
bumpDevelopAfterReleaseFromTagin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-
markReleaseIntegratedInDevelop
On develop*, merge the stable tag of the release with the "ours" strategy and push : records the release commit as an ancestor of develop* without changing its content, so that the next merge back into master* has the release as common base and stays clean.- Specified by:
markReleaseIntegratedInDevelopin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-