aboutsummaryrefslogtreecommitdiffstats
path: root/.ci
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-02-10 17:25:40 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2022-02-11 12:06:23 -0600
commitf327b88b57a25732e3c94da4d0f53b08fa4b6c75 (patch)
tree79a85ae113b713334e42fc5dcf4a0c45615c17b7 /.ci
parent6c8e9700d3458f1d1c9a14823598c0cb236f0307 (diff)
downloaduhd-f327b88b57a25732e3c94da4d0f53b08fa4b6c75.tar.gz
uhd-f327b88b57a25732e3c94da4d0f53b08fa4b6c75.tar.bz2
uhd-f327b88b57a25732e3c94da4d0f53b08fa4b6c75.zip
ci: Upload devtest logs as artifact
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci')
-rw-r--r--.ci/templates/job-uhd-devtest.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.ci/templates/job-uhd-devtest.yml b/.ci/templates/job-uhd-devtest.yml
index 67b8cfeaf..a0e8dc137 100644
--- a/.ci/templates/job-uhd-devtest.yml
+++ b/.ci/templates/job-uhd-devtest.yml
@@ -32,23 +32,28 @@ jobs:
matrix: ${{ parameters.dutMatrix }}
workspace:
clean: outputs
+
steps:
- checkout: self
clean: true
+
- task: InstallSSHKey@0
displayName: 'Install Ettus SSH key'
inputs:
knownHostsEntry: '${{ parameters.knownHost }}'
sshPublicKey: '$(ettus_ssh_pubkey)'
sshKeySecureFile: 'id_rsa.ettus'
+
- download: current
artifact: uhddev-${{ parameters.testOS }}-${{ parameters.toolset }}
displayName: Download pipeline artifact ${{ parameters.testOS }}-${{ parameters.toolset }}
+
- task: ExtractFiles@1
inputs:
archiveFilePatterns: $(Pipeline.Workspace)/uhddev-${{ parameters.testOS }}-${{ parameters.toolset }}/uhddev-${{ parameters.testOS }}-${{ parameters.toolset }}.tar.gz
destinationFolder: $(Build.BinariesDirectory)
cleanDestinationFolder: true
+
- script: |
cd $(Build.BinariesDirectory)/uhddev/build
mkdir -p fpga_images
@@ -56,6 +61,7 @@ jobs:
python3 utils/uhd_images_downloader.py -t $(devModel) -i fpga_images \
-b $(sdr-fileserver)
displayName: Download FPGA Images
+
- script: |
mkdir -p $(Common.TestResultsDirectory)/devtest
cd $(Common.TestResultsDirectory)/devtest
@@ -73,6 +79,13 @@ jobs:
continueOnError: true
condition: and(succeeded(), eq(variables.devType, 'x300'), eq(variables.devBus, 'ip'))
displayName: Run devtest on $(devName) $(devFpga)
+
+ - script: |
+ cat $(Common.TestResultsDirectory)/devtest/log*.log
+ echo ""
+ displayName: cat devtest log
+ condition: always()
+
- script: |
cd $(Common.TestResultsDirectory)/devtest
python3 ${{ parameters.uhdSrcDir }}/.ci/utils/format_devtest_junitxml.py \
@@ -80,6 +93,13 @@ jobs:
$(Common.TestResultsDirectory)/devtest/devtestresults.xml
continueOnError: true
displayName: Format devtest xml
+ condition: always()
+
+ - publish: $(Common.TestResultsDirectory)
+ artifact: test-logs-devtest-$(devName)-$(devFpga)-run$(System.JobAttempt)
+ displayName: Upload Test Logs
+ condition: always()
+
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
@@ -89,3 +109,4 @@ jobs:
mergeTestResults: true
failTaskOnFailedTests: true
displayName: Upload devtest results
+ condition: always()