Rolling back mobile applications

There are a number of ways to roll back a mobile application that is deployed to IBM® Worklight® Server. One option is to remove the native application from the Application Center and then redeploy the application. Alternatively, you can manually roll back deployments.

About this task

  • To automate rolling back a mobile application deployment, create processes that use the following general steps:
    1. At the component level, create a process that removes the native application from the Worklight Application Center, and overwrite any deployed artifacts by redeploying the application:
      1. To remove the native application from the Worklight Application Center, add the Remove Application from Application Center step.
        This process includes the single step Remove Application from Application Center.
        Tip: When you configure the Remove Application from Application Center step, specifying the Operating System and Version removes a specific native application, such as the version related to a failed deployment.
      2. Any artifacts that were successfully deployed to the Worklight Console are not removed. To overwrite the deployed artifacts, add process steps to redeploy the mobile application as described in the topic Deploying mobile applications.

      The following example process removes the native application from the Worklight Application Center and redeploys the application:

      An example process that removes the native application from the Worklight Application Center and redeploys the application.

    2. At the application process level, create a process that includes the Rollback Component process step, and configure the step to call the component process that you created above. The Rollback Component step replaces the component version with an earlier version.

      In the following application process example, if the Install Application step fails, then the Rollback Application step runs.

      In this process example, if the Install Application step fails, then the Rollback Application step runs.
  • To manually roll back a mobile application deployment:
    1. Delete the native application from the Worklight Application Center.
    2. In the Worklight Console, delete the adapters and applications. For details, see the topics in the section Administering adapters and apps in Worklight Console in the Worklight Information Center.
    3. Redeploy the previous version of the mobile application from UrbanCode Deploy.

Feedback