Continuous Integation with Azure DevOps
This template helps you to do CI build for your ROS repository with ROS on Windows.
- Make sure you have an Azure DevOps pipeline setup. If you don't, visit here ↗ for getting started.
- Learn how to create Azure DevOps pipeline from here ↗.
How to use this template
First, go to your Azure DevOps project and create a new pipeline. As walking through the wizard, select
starter pipeline and it will create a file of
azure-pipelines.yml under the root of your ROS repository.
azure-pipelines.yml with the following content:
resources: repositories: - repository: templates type: github name: ms-iot/rosonwindows_ci endpoint: <your github account> jobs: - template: build.yml@templates # Template reference parameters: ros_metapackage: 'ros-melodic-desktop'
resources defines where to look for this common template. In this example, it defines a Github repository reference to
ms-iot\rosonwindows_ci and use an
endpoint to access it.
endpoint to your Github account (or your GitHub service connection name).
jobs\template defines what template to be included. In this example, include
build.yml@templates, which means to refer to the
ms-iot\rosonwindows_ci GitHub repository.
template, there are some parameters to customize your CI build:
ros_metapackage: It is the basic image to check out for CI build. In this example, it will install
ros-melodic-desktop before the CI build.
custom_test_target: For projects which do not have
run_tests as default test target, it can be set to a customized test target.
Once the wizard finishes, now you have your own ROS on Windows CI build.