We use the mendersoftware/mender-ci-tools
container image with pre-installed mender-cli
and mender-artifact
tools to build the Mender Artifacts.
You can find the pipeline examples in the related folder.
The templates are Azure DevOps step templates with parameters. The step templates give the flexibility to use them in custom stages and jobs, and allow to build pipelines to work across different environments.
The Upload Mender Artifact template uploads a Mender Artifact to a Mender server.
The template accepts the following parameters
mender_uri
: Mender server's URL (default: https://hosted.mender.io).mender_pat
: Mender Personal Access Token (read the documentation for more information)mender_artifact
: Path of Mender Artifact file, relative to$(System.DefaultWorkingDirectory)
.
The Create deployment on Mender server template creates a deployment on a Mender server.
The template accepts the following parameters
mender_uri
: Mender server's URL (default: https://hosted.mender.io).mender_pat
: Mender Personal Access Token (read the documentation for more information)mender_deployment_name
: Mender deployment's name.mender_release_name
: Mender release's name.mender_devices_list
: The list of Mender devices a deployment will be triggered to.mender_deployment_group
: The name of the Mender devices group your deployment will target. One ofmender_deployment_group
ormender_devices_list
is required.mender_devices_list
takes the priority if both are set.