Roll Back a Published Extension

Sometimes after publishing your changes to an Oracle Cloud Applications instance, you might need to roll them back. When you "roll back" an extension, what you're actually doing is redeploying a previous extension version. To do this, you'll need to locate the previous version in VB Studio, and then move it to your extension's remote repository so that you can redeploy it.

It's always best to redeploy the previous version's actual build artifact that was originally packaged and deployed. If you have access to this build artifact in Advanced mode and you'd like to redeploy it, see this blog.

But, if build artifacts from previous extension versions aren't available, here's what you can do instead:

  1. Make sure you're working in VB Studio's Advanced mode.
  2. In the Designer, switch your branch to the previous extension version.

    Tip:

    Look for the branches named <user name>-<timestamp>; these are the branches that are created each time you publish an extension (if you didn't rename them).

    When switching, select the Create new branch based on parent branch checkbox.

  3. Push the new branch to your remote repository.
  4. From the VB Studio left navigator, click Builds, then configure your extension's packaging job with a new "Branch" parameter.

    Set the parameter's default value to main so that, when you use the Publish button in VB Studio, everything still functions as usual.

  5. Run the packaging job manually, entering your newly created branch (instead of main) in the parameter you just added.
    The packaging job will run and create a build artifact using the specified branch. Once the job finishes, it will automatically trigger the deploy job as usual.

For step-by-step instructions, see this blog.