Class ManagePlatformReleaseJspBean

java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
fr.paris.lutece.plugins.releaser.web.platform.ManagePlatformReleaseJspBean
All Implemented Interfaces:
Serializable

@Controller(controllerJsp="ManagePlatformRelease.jsp", controllerPath="jsp/admin/plugins/releaser/", right="RELEASER_PLATFORM") public class ManagePlatformReleaseJspBean extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
Release of the Lutece platform : campaigns, their 5 steps, preparation of a step (components and versions, like a site), launch on Jenkins, follow-up and CSV export. The transient site of the step being prepared is kept in session, like the site of the site screen.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    doAcceptUntestedCommits(javax.servlet.http.HttpServletRequest request)
    Records the decision to release a resource of the prepared step from the SNAPSHOT despite its commits made after its last beta or RC.
    doAcceptUntestedFromTag(javax.servlet.http.HttpServletRequest request)
    Records the decision to release a resource of the prepared step from the beta or RC tag its untested commits follow.
    doAuthenticate(javax.servlet.http.HttpServletRequest request)
    Stores the Git credentials given in the authentication modal, then opens the step preparation.
    doCancelCoreVersion(javax.servlet.http.HttpServletRequest request)
    Forgets the choice made for the lutece-core version of the platform POM.
    doCancelDowngradeComponent(javax.servlet.http.HttpServletRequest request)
    Cancels the downgrade of a component.
    doCancelLatestSnapshot(javax.servlet.http.HttpServletRequest request)
    Goes back to the SNAPSHOT of the aggregate POM for a component that was to be released from the last SNAPSHOT published in Nexus.
    doCancelParentUpgrade(javax.servlet.http.HttpServletRequest request)
    Keeps the declared parent POM version of the aggregate or of a component of the prepared step.
    doCancelParentVersion(javax.servlet.http.HttpServletRequest request)
    Forgets the choice made for the parent POM version of the platform POM.
    doCancelUntestedDecision(javax.servlet.http.HttpServletRequest request)
    Cancels the decision to release a resource of the prepared step from the SNAPSHOT despite its untested commits.
    doCancelUpgradeComponent(javax.servlet.http.HttpServletRequest request)
    Cancels the upgrade of a component.
    doChangeAggregateVersion(javax.servlet.http.HttpServletRequest request)
    Cycles the target version of the aggregate of the step being prepared.
    doChangeComponentVersion(javax.servlet.http.HttpServletRequest request)
    Cycles the target version of a component of the step being prepared.
    doChangeStepBranch(javax.servlet.http.HttpServletRequest request)
    Releases the aggregate of the prepared step from another branch of its repository : the choice is kept for the campaign and the aggregate is reloaded from that branch.
    doCreatePlatformRelease(javax.servlet.http.HttpServletRequest request)
    Creates a campaign with its 5 steps.
    doDeselectSnapshotComponents(javax.servlet.http.HttpServletRequest request)
    Unflags every component of the prepared step flagged as to be released, the reverse of the previous action.
    doDowngradeComponent(javax.servlet.http.HttpServletRequest request)
    Uses the last released version of a flagged component instead of releasing it.
    doLaunchPrecheck(javax.servlet.http.HttpServletRequest request)
    Launches the step 0 : census of the SNAPSHOT of the campaign, then their test by the step pipeline.
    doLaunchStep(javax.servlet.http.HttpServletRequest request)
    Sends the plan of the step being prepared to Jenkins, as a dry run or a real release.
    doRearmStep(javax.servlet.http.HttpServletRequest request)
    Rearms a running step whose build follow-up was lost (restart of the webapp, Jenkins unreachable for too long).
    doReleaseFromTag(javax.servlet.http.HttpServletRequest request)
    Releases in stable, from its tag, a component of the prepared step that stayed in beta or RC.
    doRemovePlatformRelease(javax.servlet.http.HttpServletRequest request)
    Removes a campaign, its steps and its component flags.
    doSaveStepDefinitions(javax.servlet.http.HttpServletRequest request)
    Saves the configuration of the 5 steps.
    doSelectSnapshotComponents(javax.servlet.http.HttpServletRequest request)
    Flags every component of the prepared step still in SNAPSHOT as to be released.
    doSkipStep(javax.servlet.http.HttpServletRequest request)
    Skips the global-pom, site-pom or core step when it has nothing to release.
    doToggleComponent(javax.servlet.http.HttpServletRequest request)
    Toggles the "to be released" flag of a component of the step being prepared.
    doUpgradeAllParents(javax.servlet.http.HttpServletRequest request)
    Releases the aggregate and every flagged component of the prepared step with the last version of their parent POM.
    doUpgradeComponent(javax.servlet.http.HttpServletRequest request)
    Uses the last released version of a non snapshot component.
    doUpgradeParent(javax.servlet.http.HttpServletRequest request)
    Releases the aggregate or a component of the prepared step with the last version of its parent POM.
    doUseCoreVersion(javax.servlet.http.HttpServletRequest request)
    Records the choice made for the lutece-core version of the platform POM : keep it, or let the pipeline set the given version.
    doUseLatestSnapshot(javax.servlet.http.HttpServletRequest request)
    Releases a component of the prepared step from the last SNAPSHOT published in Nexus instead of the older SNAPSHOT of the aggregate POM.
    doUseParentVersion(javax.servlet.http.HttpServletRequest request)
    Records the choice made for the parent POM version of the platform POM : keep it, or let the pipeline set the given version.
    doVerifyExport(javax.servlet.http.HttpServletRequest request)
    Records that the export of the plugins step has been checked by a human, which unlocks the last step.
    getConfirmRemovePlatformRelease(javax.servlet.http.HttpServletRequest request)
    Asks for the confirmation of a campaign removal.
    getCreatePlatformRelease(javax.servlet.http.HttpServletRequest request)
    Displays the campaign creation form.
    getExportCsv(javax.servlet.http.HttpServletRequest request)
    Downloads the CSV export of a campaign : every resource of every step plan, with the step status.
    getManagePlatformReleases(javax.servlet.http.HttpServletRequest request)
    Lists the campaigns the user may manage.
    getPlatformRelease(javax.servlet.http.HttpServletRequest request)
    Displays a campaign : its 5 steps with their status, build and available actions.
    getPrecheck(javax.servlet.http.HttpServletRequest request)
    Shows the result of the step 0 : every SNAPSHOT of the campaign with its step, its checks and their status.
    getPrepareStep(javax.servlet.http.HttpServletRequest request)
    Prepares a step : loads its aggregate and components in a transient site kept in session, then displays them like a site.
    getStepDefinitions(javax.servlet.http.HttpServletRequest request)
    Displays the configuration of the 5 steps : name and repository URL of each aggregate.
    getStepStatusJson(javax.servlet.http.HttpServletRequest request)
    Returns the status of a step as JSON, for the follow-up refresh.

    Methods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean

    processController

    Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean

    getPlugin, init

    Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean

    getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ManagePlatformReleaseJspBean

      public ManagePlatformReleaseJspBean()
  • Method Details

    • getManagePlatformReleases

      @View(value="managePlatformReleases", defaultView=true) public String getManagePlatformReleases(javax.servlet.http.HttpServletRequest request)
      Lists the campaigns the user may manage.
      Parameters:
      request - the request
      Returns:
      the page
    • getCreatePlatformRelease

      @View("createPlatformRelease") public String getCreatePlatformRelease(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Displays the campaign creation form.
      Parameters:
      request - the request
      Returns:
      the page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not create a campaign
    • doCreatePlatformRelease

      @Action("createPlatformRelease") public String doCreatePlatformRelease(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Creates a campaign with its 5 steps.
      Parameters:
      request - the request
      Returns:
      the campaign page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not create a campaign
    • getConfirmRemovePlatformRelease

      @Action("confirmRemovePlatformRelease") public String getConfirmRemovePlatformRelease(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Asks for the confirmation of a campaign removal.
      Parameters:
      request - the request
      Returns:
      the confirmation page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • doRemovePlatformRelease

      @Action("removePlatformRelease") public String doRemovePlatformRelease(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Removes a campaign, its steps and its component flags.
      Parameters:
      request - the request
      Returns:
      the campaign list
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • getPlatformRelease

      @View("platformRelease") public String getPlatformRelease(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Displays a campaign : its 5 steps with their status, build and available actions.
      Parameters:
      request - the request
      Returns:
      the page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • doAuthenticate

      @Action("authenticate") public String doAuthenticate(javax.servlet.http.HttpServletRequest request)
      Stores the Git credentials given in the authentication modal, then opens the step preparation.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doLaunchPrecheck

      @Action("launchPrecheck") public String doLaunchPrecheck(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Launches the step 0 : census of the SNAPSHOT of the campaign, then their test by the step pipeline. Asks for the Git credentials first.
      Parameters:
      request - the request
      Returns:
      the campaign page, or the result of the step 0 when the census left nothing to test
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • getPrecheck

      @View("precheck") public String getPrecheck(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Shows the result of the step 0 : every SNAPSHOT of the campaign with its step, its checks and their status.
      Parameters:
      request - the request
      Returns:
      the page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • getPrepareStep

      @View("prepareStep") public String getPrepareStep(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Prepares a step : loads its aggregate and components in a transient site kept in session, then displays them like a site.
      Parameters:
      request - the request
      Returns:
      the page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • getStepStatusJson

      @View("stepStatusJson") public String getStepStatusJson(javax.servlet.http.HttpServletRequest request)
      Returns the status of a step as JSON, for the follow-up refresh.
      Parameters:
      request - the request
      Returns:
      the JSON
    • getExportCsv

      @View("exportCsv") public String getExportCsv(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Downloads the CSV export of a campaign : every resource of every step plan, with the step status.
      Parameters:
      request - the request
      Returns:
      nothing, the file is written in the response
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • doRearmStep

      @Action("rearmStep") public String doRearmStep(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Rearms a running step whose build follow-up was lost (restart of the webapp, Jenkins unreachable for too long).
      Parameters:
      request - the request
      Returns:
      the campaign page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • doSkipStep

      @Action("skipStep") public String doSkipStep(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Skips the global-pom, site-pom or core step when it has nothing to release.
      Parameters:
      request - the request
      Returns:
      the campaign page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • doVerifyExport

      @Action("verifyExport") public String doVerifyExport(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Records that the export of the plugins step has been checked by a human, which unlocks the last step.
      Parameters:
      request - the request
      Returns:
      the campaign page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • doToggleComponent

      @Action("toggleComponent") public String doToggleComponent(javax.servlet.http.HttpServletRequest request)
      Toggles the "to be released" flag of a component of the step being prepared.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doAcceptUntestedCommits

      @Action("acceptUntestedCommits") public String doAcceptUntestedCommits(javax.servlet.http.HttpServletRequest request) throws IOException
      Records the decision to release a resource of the prepared step from the SNAPSHOT despite its commits made after its last beta or RC.
      Parameters:
      request - the request
      Returns:
      the step preparation
      Throws:
      IOException - if the decision cannot be saved
    • doAcceptUntestedFromTag

      @Action("acceptUntestedFromTag") public String doAcceptUntestedFromTag(javax.servlet.http.HttpServletRequest request) throws IOException
      Records the decision to release a resource of the prepared step from the beta or RC tag its untested commits follow.
      Parameters:
      request - the request
      Returns:
      the step preparation
      Throws:
      IOException - if the decision cannot be saved
    • doCancelUntestedDecision

      @Action("cancelUntestedDecision") public String doCancelUntestedDecision(javax.servlet.http.HttpServletRequest request) throws IOException
      Cancels the decision to release a resource of the prepared step from the SNAPSHOT despite its untested commits.
      Parameters:
      request - the request
      Returns:
      the step preparation
      Throws:
      IOException - if the decision cannot be saved
    • doSelectSnapshotComponents

      @Action("selectSnapshotComponents") public String doSelectSnapshotComponents(javax.servlet.http.HttpServletRequest request)
      Flags every component of the prepared step still in SNAPSHOT as to be released.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doDeselectSnapshotComponents

      @Action("deselectSnapshotComponents") public String doDeselectSnapshotComponents(javax.servlet.http.HttpServletRequest request)
      Unflags every component of the prepared step flagged as to be released, the reverse of the previous action.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doChangeComponentVersion

      @Action("changeComponentVersion") public String doChangeComponentVersion(javax.servlet.http.HttpServletRequest request)
      Cycles the target version of a component of the step being prepared.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doChangeAggregateVersion

      @Action("changeAggregateVersion") public String doChangeAggregateVersion(javax.servlet.http.HttpServletRequest request)
      Cycles the target version of the aggregate of the step being prepared.
      Parameters:
      request - the request
      Returns:
      the step preparation, with the aggregate versions opened
    • doChangeStepBranch

      @Action("changeStepBranch") public String doChangeStepBranch(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Releases the aggregate of the prepared step from another branch of its repository : the choice is kept for the campaign and the aggregate is reloaded from that branch.
      Parameters:
      request - the request
      Returns:
      the step preparation
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user is not authorized
    • doUpgradeComponent

      @Action("upgradeComponent") public String doUpgradeComponent(javax.servlet.http.HttpServletRequest request)
      Uses the last released version of a non snapshot component.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doCancelUpgradeComponent

      @Action("cancelUpgradeComponent") public String doCancelUpgradeComponent(javax.servlet.http.HttpServletRequest request)
      Cancels the upgrade of a component.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doUseLatestSnapshot

      @Action("useLatestSnapshot") public String doUseLatestSnapshot(javax.servlet.http.HttpServletRequest request)
      Releases a component of the prepared step from the last SNAPSHOT published in Nexus instead of the older SNAPSHOT of the aggregate POM.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doReleaseFromTag

      @Action("releaseFromTag") public String doReleaseFromTag(javax.servlet.http.HttpServletRequest request)
      Releases in stable, from its tag, a component of the prepared step that stayed in beta or RC.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doCancelLatestSnapshot

      @Action("cancelLatestSnapshot") public String doCancelLatestSnapshot(javax.servlet.http.HttpServletRequest request)
      Goes back to the SNAPSHOT of the aggregate POM for a component that was to be released from the last SNAPSHOT published in Nexus.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doUpgradeParent

      @Action("upgradeParent") public String doUpgradeParent(javax.servlet.http.HttpServletRequest request)
      Releases the aggregate or a component of the prepared step with the last version of its parent POM.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doCancelParentUpgrade

      @Action("cancelParentUpgrade") public String doCancelParentUpgrade(javax.servlet.http.HttpServletRequest request)
      Keeps the declared parent POM version of the aggregate or of a component of the prepared step.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doUpgradeAllParents

      @Action("upgradeAllParents") public String doUpgradeAllParents(javax.servlet.http.HttpServletRequest request)
      Releases the aggregate and every flagged component of the prepared step with the last version of their parent POM.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doUseCoreVersion

      @Action("useCoreVersion") public String doUseCoreVersion(javax.servlet.http.HttpServletRequest request)
      Records the choice made for the lutece-core version of the platform POM : keep it, or let the pipeline set the given version.
      Parameters:
      request - the request, with the choice ("keep" or a version)
      Returns:
      the step preparation, reloaded
    • doCancelCoreVersion

      @Action("cancelCoreVersion") public String doCancelCoreVersion(javax.servlet.http.HttpServletRequest request)
      Forgets the choice made for the lutece-core version of the platform POM.
      Parameters:
      request - the request
      Returns:
      the step preparation, reloaded
    • doUseParentVersion

      @Action("useParentVersion") public String doUseParentVersion(javax.servlet.http.HttpServletRequest request)
      Records the choice made for the parent POM version of the platform POM : keep it, or let the pipeline set the given version.
      Parameters:
      request - the request, with the choice ("keep" or a version)
      Returns:
      the step preparation, reloaded
    • doCancelParentVersion

      @Action("cancelParentVersion") public String doCancelParentVersion(javax.servlet.http.HttpServletRequest request)
      Forgets the choice made for the parent POM version of the platform POM.
      Parameters:
      request - the request
      Returns:
      the step preparation, reloaded
    • doDowngradeComponent

      @Action("downgradeComponent") public String doDowngradeComponent(javax.servlet.http.HttpServletRequest request)
      Uses the last released version of a flagged component instead of releasing it.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doCancelDowngradeComponent

      @Action("cancelDowngradeComponent") public String doCancelDowngradeComponent(javax.servlet.http.HttpServletRequest request)
      Cancels the downgrade of a component.
      Parameters:
      request - the request
      Returns:
      the step preparation
    • doLaunchStep

      @Action("launchStep") public String doLaunchStep(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Sends the plan of the step being prepared to Jenkins, as a dry run or a real release.
      Parameters:
      request - the request
      Returns:
      the campaign page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaign
    • getStepDefinitions

      @View("stepDefinitions") public String getStepDefinitions(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Displays the configuration of the 5 steps : name and repository URL of each aggregate. After a failed save, the values typed by the user are shown again with the validation errors.
      Parameters:
      request - the request
      Returns:
      the page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaigns
    • doSaveStepDefinitions

      @Action("saveStepDefinitions") public String doSaveStepDefinitions(javax.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
      Saves the configuration of the 5 steps. Every step is validated before anything is stored.
      Parameters:
      request - the request
      Returns:
      the configuration page
      Throws:
      fr.paris.lutece.portal.service.admin.AccessDeniedException - if the user may not manage the campaigns