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).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.voidmarkDevelopIntegratedInMaster(WorkflowReleaseContext context, Locale locale) On master*, merge develop* with the "ours" strategy and push : records develop* as integrated without changing master*'s content, so the next merge will not conflict on the version line.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) Update the master* branch counterpart with the new stable version : checkout master*, set the pom version to the stable version, commit and push.
-
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
Release 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
-
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
Update the master* branch counterpart with the new stable version : checkout master*, set the pom version to the stable version, commit and push. 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
-
markDevelopIntegratedInMaster
On master*, merge develop* with the "ours" strategy and push : records develop* as integrated without changing master*'s content, so the next merge will not conflict on the version line. Skipped if there is no master* counterpart.- Specified by:
markDevelopIntegratedInMasterin interfaceIWorkflowReleaseContextService- Parameters:
context- the contextlocale- the locale
-