Here is what happened after a self-hosted agent/runner receives a task.
- Agent/Runner parse what actions needs to be done, in our case,
lvCICD
actions included in them. - The information including
LabVIEW Version
|LabVIEW Architecture
|Operation
|Parameters
will be passed to LabVIEW CLI, through powershell script-call.- In github, You can use customer-action like [email protected] in step. The specified tag of repo will be download implicitly. And lvCICD.ps1 will be called implicitly.
- In Azure DevOps, You need to explicitly download lvCICD tools with powershell scripts. And you need to use the tool explicitly in powershell scripts.
- LabVIEW CLI start lvCICD.vi with specified LabVIEW. The Operation VI in script folder will be called in lvCICD.vi. Parameters are Passed to Operation VI.
- lvCICD.vi saves the
Result
of Operation VI to 'result.txt'
Steps:
- fork this repo
- Save a new operation VI from VI template "LabVIEW-Adapter\Scripts_template.vit"
- File Name is the operation name.
CommandLine
is the list ofParameter0
..Parameter10
from workflow yml file.- If the parameter is a path, use "LabVIEW-Adapter_support\parameter to Path_lvcicd.vi" to resolve the relative path.
Test Details
String anderror out
information will be published to log.
- Add your operation VI to "_test_cases\lvCICD_TestCase" for unit test.
- Start a pull request.
Thanks for your contribution.