When you deploy changes to your app, Forge will create a new app version in the environment you specified
(by default, this is the development
environment). As you iterate on the app and deploy changes, you'll
create more versions. Each app version can be major or minor, depending on the app change you introduce:
Major version | Minor version |
---|---|
Major versions involve significant app changes that require site admins to review them first. A new major version won’t be applied to a site until its admin consents to the upgrade. | Minor versions are incremental improvements to major versions. Forge automatically updates all installed apps to the latest minor version of their major version (without requiring admin consent).
By default, Forge creates new minor versions of the latest major version. However, you can also backport new minor versions of older major versions. |
See Major version upgrades for more details about what changes result in a new major version. | See Minor version upgrades for more information. |
Forge handles versioning automatically, and creates major or minor versions depending on the app change you’re deploying.
Forge creates and maintains versions on a per-environment basis. As such, when you deploy app changes to
production
resulting in a new major version, this version becomes available for all customer sites in
production
.
Likewise, if you deploy a new minor version to a major version in production
, it will automatically be
applied to all customer sites running that major version in production
.
Forge apps created via the
Developer Console or Forge CLI
will initially have a version of 1.1
(major version 1
, minor version 1
).
There are different ways to see what version of your app is installed on each site, in each environment:
The forge install list
command will display the major version installed on each site:
In the Developer Console, your app's Installations page (under MONITOR) will display the major and minor version. The first segment of the version is the major version number. All sites on the same major version will also be on the same minor version:
In the Developer Console, your app's Deployments page (under BUILD) will show who performed each deployment (Contributor), and when. It’ll also show which major version each deployment targeted within an environment:
Each site’s admin can also see and upgrade their installed app’s version. See Manage app upgrades for more details.
Major version upgrades are not applied to an app installation immediately. This is because major versions involve significant changes that may require users and admins to re-consent or review the changes before continuing.
The following manifest.yml
file changes are considered major version upgrades:
You can use the Forge CLI to complete a major upgrade with forge install --upgrade
.
Site admins can select upgrade from the manage apps screen to complete the app upgrade.
Forge creates a new minor version whenever you deploy app changes that don’t result in a new major version. You can apply minor version updates to any major version, even older ones.
Unlike major versions, minor version upgrades do not require admin consent. When you deploy a new minor version, Forge automatically installs it to all sites running the same major version. This means that every site is always running the latest minor version of each app’s major version.
This section describes a Forge preview feature. Preview features are deemed stable; however, they remain under active development and may be subject to shorter deprecation windows. Preview features are suitable for early adopters in production environments.
We release preview features so partners and developers can study, test, and integrate them prior to General Availability (GA). For more information, see Forge release phases: EAP, Preview, and GA.
In some cases, a site admin can’t or won’t upgrade from an older major version of your app. You can
still backport minor version upgrades
to their app. When you do, Forge will automatically apply that
minor version upgrade to all sites running the same major version.
To do this, use the --major-version
option:
1 2forge deploy --major-version [version] --verbose
The --verbose
option will provide you with more useful details about any deployment errors. These
details include whether your attempted deployment would have resulted in a new major version.
Any manifest file changes relating to
Custom Entities
cannot be backported. When you use the --major-version
, the forge deploy
command will ignore the storage
section of your manifest file.
The Atlassian Marketplace cannot display any new minor versions created through backporting. We are currently working on addressing this; follow MP-250 for relevant and up-to-date details.
Rate this page: