Skip to main content
A release is one firmware sent by a deployment group. Each release has a number within its group, starting at 1 with the release created along with the group. The newest release is the group’s current release, and the group keeps every earlier release as history.

Requirements

The nh deployment release commands need a NervesHub server that has the deployment release API. An older server answers with an error that says so. nh deployment update --firmware works against older servers too.

What a release holds

To send different firmware, create a new release. NervesHub refuses a release with the same firmware and archive as the current release.

Create a release

1

Open the dialog

Open the deployment group and select New release.
2

Choose the firmware

The Firmware list offers firmware for the group’s platform and architecture, newest first.
3

Describe the release

Fill in Description and, if you want, Notes and Archive.
4

Set the options

Turn on Required release if every device must pass through this release. Expand Connecting code to give the release its own code.
5

Create it

Select Create release. The dialog lists what creating the release sets off before you confirm.
The group starts sending a release as soon as it is created. If the group is paused, it sends the release once you resume it. In a group with a workflow, each new release starts again at step 1.
To upload firmware and create a release in one command, use nh firmware upload --deploy <group>. See Create and activate deployment groups.

View releases

The Releases tab on the group page lists every release, newest first, with the columns Release, What’s in it, Status and Released by. Select a row to see its notes, its connecting code and its delta updates. The current release starts open. From the CLI:
list marks the current release with * and shows each release’s firmware version, firmware UUID, archive, whether it is required, its delta status and who created it. show adds the platform, architecture, description, notes and connecting code. The delta status of a release is one of: See Delta updates.

Required releases

By default every device in a group is sent the current release, however far behind it is. A required release is one every device passes through. A device that has not reached a required release is sent the earliest required release it is behind. It moves on only once it is running that release. Use a required release for firmware that later firmware depends on, such as a migration or a bootloader change.

Mark a release required

When you create the release, turn on Required release in the dialog or pass --required. To change an existing release:
On the Releases tab, open the release, select Edit release, switch Required release on or off, and select Save changes.
Required releases show a Required badge on the Releases tab. nh deployment show reports whether the current release is required.

How NervesHub places a device

NervesHub works out how far a device has got from the release it is running. That is the newest release in the group whose firmware the device runs. A device running firmware that belongs to no release in the group cannot be placed that way. For that device, a required release is skipped only when the device’s firmware version is already at or beyond the release’s version. If the device’s version is not a valid semantic version, the required release still applies. Marking or unmarking a release as required changes which firmware some devices are sent next. NervesHub queues the deltas those devices need when the group has delta updates on.

Edit a release

After a release is created, you can change whether it is required, its connecting code, and where that code runs.
In the web UI, use Edit release on the Releases tab.