From 26f2e6d38d8f0ccbc574a4ba6df9cd1f248db980 Mon Sep 17 00:00:00 2001 From: Matt Schulte Date: Wed, 17 Apr 2019 12:52:54 -0700 Subject: [PATCH] Downloads findconnectedport for Universal Package --- azure-pipelines.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 43cf155d..02388587 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -448,6 +448,19 @@ jobs: vstsPackageVersion: "1.0.1" downloadDirectory: "$(System.ArtifactsDirectory)/depthengineplugin" + - task: UniversalPackages@0 + displayName: 'Download findconnectedport' + inputs: + command: download + vstsFeed: 'analog.ai.depthcamera' + vstsFeedPackage: 'findconnectedport' + vstsPackageVersion: "0.1.1" + downloadDirectory: "$(System.ArtifactsDirectory)/findconnectedport" + + - script: 'chmod +x $(System.ArtifactsDirectory)/findconnectedport/linux/*' + workingDirectory: '$(System.ArtifactsDirectory)' + displayName: 'Add execution property to findconnectedport' + - task: CopyFiles@2 displayName: "Copy DepthEnginePlugin into LD_LIBRARY_PATH" inputs: @@ -478,10 +491,10 @@ jobs: workingDirectory: '$(System.ArtifactsDirectory)' displayName: 'Prevent the USB connector from accidentally being reset' - # The binary is built from https://microsoft.visualstudio.com/Analog/_git/systems.rustyhmdkit - # Wait a little bit so the device can enumerate, 3 seconds has seemed good. - - script: '$(Agent.HomeDirectory)/bin/findconnectedport-linux/findconnectedport && sleep 3' - workingDirectory: '$(Agent.HomeDirectory)/bin/findconnectedport-linux/' + # The binary is built from https://microsoft.visualstudio.com/Analog/_git/systems.rustyhmdkit + # Wait a little bit so the device can enumerate, 3 seconds has seemed good. + - script: '$(System.ArtifactsDirectory)/findconnectedport/linux/findconnectedport && sleep 3' + workingDirectory: '$(System.ArtifactsDirectory)/findconnectedport/linux/' displayName: 'Reset K4A Device' - script: './x86_64-linux-clang-relwithdebinfo/bin/enumerate_devices' @@ -500,6 +513,6 @@ jobs: continueOnError: true # The binary is built from https://microsoft.visualstudio.com/Analog/_git/systems.rustyhmdkit - - script: '$(Agent.HomeDirectory)/bin/findconnectedport-linux/findconnectedport' - workingDirectory: '$(Agent.HomeDirectory)/bin/findconnectedport-linux/' + - script: '$(System.ArtifactsDirectory)/findconnectedport/linux/findconnectedport' + workingDirectory: '$(System.ArtifactsDirectory)/findconnectedport/linux/' displayName: 'Reset K4A Device'