diff options
author | Steven Koo <steven.koo@ni.com> | 2021-12-16 17:08:42 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-06 15:10:53 -0600 |
commit | 5e40438ee9834025dc7065c686ab34815458e1a4 (patch) | |
tree | 75fcc4de229ba14cac5432ca6c42f097549dc085 /.ci | |
parent | f0ae43ad740335771b4c48a37b92b6f4b38f766a (diff) | |
download | uhd-5e40438ee9834025dc7065c686ab34815458e1a4.tar.gz uhd-5e40438ee9834025dc7065c686ab34815458e1a4.tar.bz2 uhd-5e40438ee9834025dc7065c686ab34815458e1a4.zip |
ci: refactor dockerOSName to buildOSName
dockerOSName is misleading because it could be in a bare metal context
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci')
-rw-r--r-- | .ci/templates/job-uhd-build-installer.yml | 8 | ||||
-rw-r--r-- | .ci/templates/job-uhd-build-src.yml | 4 | ||||
-rw-r--r-- | .ci/uhd-build-docker-container.yml | 20 |
3 files changed, 16 insertions, 16 deletions
diff --git a/.ci/templates/job-uhd-build-installer.yml b/.ci/templates/job-uhd-build-installer.yml index e0d9dc9d3..aff8dca5c 100644 --- a/.ci/templates/job-uhd-build-installer.yml +++ b/.ci/templates/job-uhd-build-installer.yml @@ -63,11 +63,11 @@ jobs: ubuntuReleaseName: $(ubuntuReleaseName) - ${{ if ne(parameters.toolset, 'ubuntu_deb') }}: - download: current - artifact: $(dockerOSName)-${{ parameters.toolset }} - displayName: Download pipeline artifact $(dockerOSName)-${{ parameters.toolset }} + artifact: $(buildOSName)-${{ parameters.toolset }} + displayName: Download pipeline artifact $(buildOSName)-${{ parameters.toolset }} - task: ExtractFiles@1 inputs: - archiveFilePatterns: $(Pipeline.Workspace)/$(dockerOSName)-${{ parameters.toolset }}/$(dockerOSName)-${{ parameters.toolset }}.tar.gz + archiveFilePatterns: $(Pipeline.Workspace)/$(buildOSName)-${{ parameters.toolset }}/$(buildOSName)-${{ parameters.toolset }}.tar.gz destinationFolder: $(Build.BinariesDirectory) cleanDestinationFolder: true - ${{ if and(eq(parameters.toolset, 'msbuild'), eq(parameters.installer, 'nsis')) }}: @@ -83,5 +83,5 @@ jobs: - task: PublishPipelineArtifact@1 inputs: targetPath: '$(Build.BinariesDirectory)/uhddev-installer' - artifactName: '$(dockerOSName)-${{ parameters.toolset }}-${{ parameters.installer }}-installer' + artifactName: '$(buildOSName)-${{ parameters.toolset }}-${{ parameters.installer }}-installer' displayName: Upload uhd installer artifact diff --git a/.ci/templates/job-uhd-build-src.yml b/.ci/templates/job-uhd-build-src.yml index 176b1d2e9..5b642d723 100644 --- a/.ci/templates/job-uhd-build-src.yml +++ b/.ci/templates/job-uhd-build-src.yml @@ -113,7 +113,7 @@ jobs: includeRootFolder: false archiveType: tar tarCompression: gz - archiveFile: $(Build.ArtifactStagingDirectory)/$(dockerOSName)-${{ parameters.toolset }}.tar.gz + archiveFile: $(Build.ArtifactStagingDirectory)/$(buildOSName)-${{ parameters.toolset }}.tar.gz replaceExistingArchive: true displayName: Compress build files @@ -126,7 +126,7 @@ jobs: - task: PublishPipelineArtifact@1 inputs: targetPath: '$(Build.ArtifactStagingDirectory)' - artifactName: '$(dockerOSName)-${{ parameters.toolset }}' + artifactName: '$(buildOSName)-${{ parameters.toolset }}' displayName: Upload uhd build artifacts - task: CopyFiles@2 diff --git a/.ci/uhd-build-docker-container.yml b/.ci/uhd-build-docker-container.yml index bbf0d4c61..8ce982d30 100644 --- a/.ci/uhd-build-docker-container.yml +++ b/.ci/uhd-build-docker-container.yml @@ -38,22 +38,22 @@ variables: - template: uhd-pipeline-vars.yml - name: linuxDockerImages value: - "{'Fedora-33-builder':{'dockerOSName':'fedora33','dockerImageName':'uhd-builder-fedora33'}, - 'Fedora-34-builder':{'dockerOSName':'fedora34','dockerImageName':'uhd-builder-fedora34'}, - 'Ubuntu-1804-builder':{'dockerOSName':'ubuntu1804','dockerImageName':'uhd-builder-ubuntu1804'}, - 'Ubuntu-2004-builder':{'dockerOSName':'ubuntu2004','dockerImageName':'uhd-builder-ubuntu2004'}}" + "{'Fedora-33-builder':{'buildOSName':'fedora33','dockerImageName':'uhd-builder-fedora33'}, + 'Fedora-34-builder':{'buildOSName':'fedora34','dockerImageName':'uhd-builder-fedora34'}, + 'Ubuntu-1804-builder':{'buildOSName':'ubuntu1804','dockerImageName':'uhd-builder-ubuntu1804'}, + 'Ubuntu-2004-builder':{'buildOSName':'ubuntu2004','dockerImageName':'uhd-builder-ubuntu2004'}}" - name: winDockerImages value: - "{'VS2017-x86-builder':{'dockerOSName':'win-vs17-v141-x86','dockerImageName':'uhd-builder-vs2017-v141-x86','cmakeCompiler':'Visual Studio 15 2017','cmakeArch':'Win32','vsArch':'x86','vsYear':'2017'}, - 'VS2017-x64-builder':{'dockerOSName':'win-vs17-v141-x64','dockerImageName':'uhd-builder-vs2017-v141-x64','cmakeCompiler':'Visual Studio 15 2017','cmakeArch':'x64','vsArch':'x64','vsYear':'2017'}, - 'VS2019-x86-builder':{'dockerOSName':'win-vs19-v142-x86','dockerImageName':'uhd-builder-vs2019-v142-x86','cmakeCompiler':'Visual Studio 16 2019','cmakeArch':'Win32','vsArch':'x86','vsYear':'2019'}, - 'VS2019-x64-builder':{'dockerOSName':'win-vs19-v142-x64','dockerImageName':'uhd-builder-vs2019-v142-x64','cmakeCompiler':'Visual Studio 16 2019','cmakeArch':'x64','vsArch':'x64','vsYear':'2019'}}" + "{'VS2017-x86-builder':{'buildOSName':'win-vs17-v141-x86','dockerImageName':'uhd-builder-vs2017-v141-x86','cmakeCompiler':'Visual Studio 15 2017','cmakeArch':'Win32','vsArch':'x86','vsYear':'2017'}, + 'VS2017-x64-builder':{'buildOSName':'win-vs17-v141-x64','dockerImageName':'uhd-builder-vs2017-v141-x64','cmakeCompiler':'Visual Studio 15 2017','cmakeArch':'x64','vsArch':'x64','vsYear':'2017'}, + 'VS2019-x86-builder':{'buildOSName':'win-vs19-v142-x86','dockerImageName':'uhd-builder-vs2019-v142-x86','cmakeCompiler':'Visual Studio 16 2019','cmakeArch':'Win32','vsArch':'x86','vsYear':'2019'}, + 'VS2019-x64-builder':{'buildOSName':'win-vs19-v142-x64','dockerImageName':'uhd-builder-vs2019-v142-x64','cmakeCompiler':'Visual Studio 16 2019','cmakeArch':'x64','vsArch':'x64','vsYear':'2019'}}" - name: ubuntuDebDockerImages # Match with Ubuntu images in linuxDockerImages value: - "{'Ubuntu-1804-builder':{'dockerOSName':'ubuntu1804','dockerImageName':'uhd-builder-ubuntu1804','ubuntuReleaseName':'bionic'}, - 'Ubuntu-2004-builder':{'dockerOSName':'ubuntu2004','dockerImageName':'uhd-builder-ubuntu2004','ubuntuReleaseName':'focal'}}" + "{'Ubuntu-1804-builder':{'buildOSName':'ubuntu1804','dockerImageName':'uhd-builder-ubuntu1804','ubuntuReleaseName':'bionic'}, + 'Ubuntu-2004-builder':{'buildOSName':'ubuntu2004','dockerImageName':'uhd-builder-ubuntu2004','ubuntuReleaseName':'focal'}}" - name: macOSBuilders value: |