Interface IWorkflowReleaseContextService
- All Known Implementing Classes:
WorkflowReleaseContextService
public interface IWorkflowReleaseContextService
The Interface IWorkflowReleaseContextService.
-
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.voidcheckoutRepository(WorkflowReleaseContext context, Locale locale) Checkout repository.voidcreateDockerImage(WorkflowReleaseContext workflowReleaseContext, 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 byprepareReleaseFromTag(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.getWorkflowReleaseContext(int nIdContext) Gets the workflow release context.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.voidsendTweet(WorkflowReleaseContext context, Locale locale) Send tweet.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.voidupdateJiraVersions(WorkflowReleaseContext context, Locale locale) Update jira 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.
-
Method Details
-
startWorkflowReleaseContext
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.- Parameters:
context- the contextnIdWorkflow- the n id workflowlocale- the localerequest- the requestuser- the user
-
addWorkflowReleaseContext
Adds the workflow release context.- Parameters:
context- the context- Returns:
- the int
-
saveWorkflowReleaseContext
Save workflow release context.- Parameters:
context- the context
-
getWorkflowReleaseContext
Gets the workflow release context.- Parameters:
nIdContext- the n id context- Returns:
- the workflow release context
-
getListWorkflowReleaseContextHistory
Gets the list workflow release context history.- Parameters:
strArtifactId- the str artifact id- Returns:
- the list workflow release context history
-
getIdWorkflow
Gets the id workflow.- Parameters:
context- the context- Returns:
- the id workflow
-
checkoutRepository
Checkout repository.- Parameters:
context- the contextlocale- the locale
-
mergeDevelopMaster
Merge develop master.- Parameters:
context- the contextlocale- the locale
-
releasePrepareComponent
Release prepare component.- Parameters:
context- the contextlocale- the locale
-
releasePrepareSite
Release prepare site.- Parameters:
context- the contextlocale- the locale
-
releasePerformComponent
Release perform component.- Parameters:
context- the contextlocale- the locale
-
releasePerformSite
Release perform site.- Parameters:
context- the contextlocale- the locale
-
sendTweet
Send tweet.- Parameters:
context- the contextlocale- the locale
-
updateJiraVersions
Update jira versions.- Parameters:
context- the contextlocale- the locale
-
startReleaseInProgress
Start release in progress.- Parameters:
strArtifactId- the str artifact id
-
stopReleaseInProgress
Stop release in progress.- Parameters:
strArtifactId- the str artifact id
-
isReleaseInProgress
Checks if is release in progress.- Parameters:
strArtifactId- the str artifact id- Returns:
- true, if is release in progress
-
init
void init()Inits the. -
createDockerImage
Create docker image.- 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.- 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 byprepareReleaseFromTag(fr.paris.lutece.plugins.releaser.business.WorkflowReleaseContext, java.util.Locale).- 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.- 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.- 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.- Parameters:
context- the contextlocale- the locale
-