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'