aboutsummaryrefslogtreecommitdiffstats
path: root/.ci/templates
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-06-03 10:27:00 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2022-06-10 13:24:06 -0500
commit693ec038b66520b0f868cee0338d00e3eb766548 (patch)
treec0ff3c206d11bd8223b917ea6a45186e1358034f /.ci/templates
parent0190ed14d9d3cb875c60672514b722d9e27f4a1f (diff)
downloaduhd-693ec038b66520b0f868cee0338d00e3eb766548.tar.gz
uhd-693ec038b66520b0f868cee0338d00e3eb766548.tar.bz2
uhd-693ec038b66520b0f868cee0338d00e3eb766548.zip
ci: Add devtests to hardware-test-dev
This enables running the devtests without having to rebuild uhd, typically for development purposes. Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates')
-rw-r--r--.ci/templates/job-uhd-devtest-rhombus.yml4
-rw-r--r--.ci/templates/job-uhd-devtest.yml16
2 files changed, 17 insertions, 3 deletions
diff --git a/.ci/templates/job-uhd-devtest-rhombus.yml b/.ci/templates/job-uhd-devtest-rhombus.yml
index 71c0a01dc..a05f47644 100644
--- a/.ci/templates/job-uhd-devtest-rhombus.yml
+++ b/.ci/templates/job-uhd-devtest-rhombus.yml
@@ -5,6 +5,9 @@ parameters:
- ubuntu2004
- name: uhdSrcDir
type: string
+- name: uhdArtifactSource
+ type: string
+ default: current
jobs:
- template: job-uhd-devtest.yml
@@ -14,6 +17,7 @@ jobs:
knownHost: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE+SZhHi7YOvHW6xmVGhhZGLtqlZoPkOqGdr5WqnmLBN root@ubuntu'
toolset: 'make'
uhdSrcDir: '${{ parameters.uhdSrcDir }}'
+ uhdArtifactSource: '${{ parameters.uhdArtifactSource }}'
redisHost: 'sdr-rhombus'
dutMatrix:
rhombus-x300-UBX-0 XG:
diff --git a/.ci/templates/job-uhd-devtest.yml b/.ci/templates/job-uhd-devtest.yml
index c217fce01..2febdbbcf 100644
--- a/.ci/templates/job-uhd-devtest.yml
+++ b/.ci/templates/job-uhd-devtest.yml
@@ -13,6 +13,8 @@ parameters:
- make
- name: uhdSrcDir
type: string
+- name: uhdArtifactSource
+ type: string
- name: redisHost
type: string
- name: dutMatrix
@@ -44,13 +46,21 @@ jobs:
sshPublicKey: '$(ettus_ssh_pubkey)'
sshKeySecureFile: 'id_rsa.ettus'
- - download: current
+ - script: |
+ if [ "${{ parameters.uhdArtifactSource }}" = "current" ]; then
+ echo '##vso[task.setvariable variable=uhd_artifact_directory]'$(Agent.BuildDirectory)
+ else
+ echo '##vso[task.setvariable variable=uhd_artifact_directory]'$(Agent.BuildDirectory)/${{ parameters.uhdArtifactSource }}
+ fi
+ displayName: Set uhddev pipeline artifact location
+
+ - download: ${{ parameters.uhdArtifactSource }}
artifact: uhddev-${{ parameters.testOS }}-${{ parameters.toolset }}
- displayName: Download pipeline artifact ${{ parameters.testOS }}-${{ parameters.toolset }}
+ displayName: Download uhddev-${{ parameters.testOS }}-${{ parameters.toolset }} artifact
- task: ExtractFiles@1
inputs:
- archiveFilePatterns: $(Pipeline.Workspace)/uhddev-${{ parameters.testOS }}-${{ parameters.toolset }}/uhddev-${{ parameters.testOS }}-${{ parameters.toolset }}.tar.gz
+ archiveFilePatterns: $(uhd_artifact_directory)/uhddev-${{ parameters.testOS }}-${{ parameters.toolset }}/uhddev-${{ parameters.testOS }}-${{ parameters.toolset }}.tar.gz
destinationFolder: $(Build.BinariesDirectory)
cleanDestinationFolder: true