diff options
author | Steven Koo <steven.koo@ni.com> | 2021-03-16 12:39:29 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-19 15:40:09 -0500 |
commit | 3b29a89b9f9a8167a595eed2988b89e2a7f2112a (patch) | |
tree | 8606482f63f69d2aee7a926b5ffc540ffc13ec28 /.ci/templates/job-get-latest-uhd-docker.yml | |
parent | 9aafc0ace2272746d708dcac6e5daaa50b7da4c7 (diff) | |
download | uhd-3b29a89b9f9a8167a595eed2988b89e2a7f2112a.tar.gz uhd-3b29a89b9f9a8167a595eed2988b89e2a7f2112a.tar.bz2 uhd-3b29a89b9f9a8167a595eed2988b89e2a7f2112a.zip |
ci: Build uhd with Pipelines
This commit adds the infrastructure to build uhd on both Linux and
Windows using Pipelines. Using the docker images generated by the
build docker pipeline, this runs an AzDO container job to build uhd
artifacts. It then stores the artifacts to be used in later pipelines or
stages. This change supports make and ninja on Linux and msbuild
with VS2017/VS2019 x86/x64 on Windows.
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/templates/job-get-latest-uhd-docker.yml')
-rw-r--r-- | .ci/templates/job-get-latest-uhd-docker.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.ci/templates/job-get-latest-uhd-docker.yml b/.ci/templates/job-get-latest-uhd-docker.yml new file mode 100644 index 000000000..c90320d78 --- /dev/null +++ b/.ci/templates/job-get-latest-uhd-docker.yml @@ -0,0 +1,36 @@ +# Must include uhd-pipeline-vars.yml in top line pipeline to include this template +# Reads and sets uhd docker builder information to variables +# dockerBuildNumber, dockerImagePrefix, dockerImageMatrix +# Reference the data by calling: +# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerBuildNumber'] ] +# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImagePrefix'] ] +# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixLin'] ] +# $[ dependencies.get_latest_uhd_docker.outputs['setDockerVar.dockerImageMatrixWin'] ] +jobs: +- job: get_latest_uhd_docker + displayName: Get Last Docker Build Version + pool: + name: Drivers-NIBuildFarm-RFMIBUILD + demands: sh + steps: + - checkout: none + - download: uhd_build_docker_container + displayName: Download Docker Image List + - script: | + cd $(Pipeline.Workspace)/uhd_build_docker_container/ + docker_build_number=$(sed '1q;d' $(UHDPipelineDockerImageArtifactName)/$(UHDPipelineDockerImageArtifactName)) + docker_image_prefix=$(sed '2q;d' $(UHDPipelineDockerImageArtifactName)/$(UHDPipelineDockerImageArtifactName)) + docker_image_matrix_lin=$(sed '3q;d' $(UHDPipelineDockerImageArtifactName)/$(UHDPipelineDockerImageArtifactName)) + docker_image_matrix_win=$(sed '4q;d' $(UHDPipelineDockerImageArtifactName)/$(UHDPipelineDockerImageArtifactName)) + echo "##vso[task.setvariable variable=dockerBuildNumber;isOutput=true;]$docker_build_number" + echo "##vso[task.setvariable variable=dockerImagePrefix;isOutput=true;]$docker_image_prefix" + echo "##vso[task.setvariable variable=dockerImageMatrixLin;isOutput=true;]$docker_image_matrix_lin" + echo "##vso[task.setvariable variable=dockerImageMatrixWin;isOutput=true;]$docker_image_matrix_win" + name: setDockerVar + - script: | + echo "Docker Build Number: " + echo $(setDockerVar.dockerBuildNumber) + echo $(setDockerVar.dockerImagePrefix) + echo $(setDockerVar.dockerImageMatrixLin) + echo $(setDockerVar.dockerImageMatrixWin) + name: echoDockerVar |