Merge in 'release/6.0.3xx' changes

This commit is contained in:
dotnet-bot 2022-11-30 15:06:05 +00:00
commit 07a449566e
2 changed files with 57 additions and 31 deletions

View file

@ -43,7 +43,15 @@ jobs:
- name: additionalBuildArgs - name: additionalBuildArgs
value: --with-sdk /tarball/.dotnet value: --with-sdk /tarball/.dotnet
- name: tarballDir - name: tarballDir
value: $(Build.StagingDirectory)/tarball ${{ if eq(parameters.installerBuildResourceId, '') }}:
value: $(Build.SourcesDirectory)
${{ else }}:
value: $(Build.StagingDirectory)/tarball
- name: installerSrcDir
${{ if eq(parameters.installerBuildResourceId, '') }}:
value: $(Build.SourcesDirectory)/src/installer
${{ else }}:
value: $(Build.SourcesDirectory)
workspace: workspace:
clean: all clean: all
@ -51,19 +59,28 @@ jobs:
- checkout: self - checkout: self
clean: true clean: true
- ${{ if ne(variables['System.TeamProject'], 'public') }}: - ${{ if ne(parameters.installerBuildResourceId, '') }}:
- task: Bash@3 - download: ${{ parameters.installerBuildResourceId }}
displayName: Setup Private Feeds Credentials artifact: BlobArtifacts
inputs: patterns: '**/dotnet-sdk-source*.tar.gz'
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh displayName: Download Source Tarball
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
env:
Token: $(dn-bot-dnceng-artifact-feeds-rw)
- download: ${{ parameters.installerBuildResourceId }} - script: |
artifact: BlobArtifacts set -x
patterns: '**/dotnet-sdk-source*.tar.gz'
displayName: Download Source Tarball resourceIdPathSegment=
if [[ '${{ parameters.installerBuildResourceId }}' != 'current' ]]; then
resourceIdPathSegment='${{ parameters.installerBuildResourceId }}/'
fi
mkdir -p "$(tarballDir)"
tarballFilePath="$(PIPELINE.WORKSPACE)/${resourceIdPathSegment}BlobArtifacts/dotnet-sdk-source*.tar.gz"
eval tar -ozxf "$tarballFilePath" -C "$(tarballDir)"
eval rm -f "$tarballFilePath"
displayName: Extract Tarball
- script: cp $(installerSrcDir)/NuGet.config $(tarballDir)/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/online.NuGet.Config
displayName: Copy Test NuGet Config
- ${{ if ne(parameters.excludeSdkContentTests, 'true') }}: - ${{ if ne(parameters.excludeSdkContentTests, 'true') }}:
- download: ${{ parameters.installerBuildResourceId }} - download: ${{ parameters.installerBuildResourceId }}
@ -84,20 +101,6 @@ jobs:
Contents: '*.tar.gz' Contents: '*.tar.gz'
TargetFolder: $(tarballDir)/packages/archive/ TargetFolder: $(tarballDir)/packages/archive/
- script: |
set -x
resourceIdPathSegment=
if [[ '${{ parameters.installerBuildResourceId }}' != 'current' ]]; then
resourceIdPathSegment='${{ parameters.installerBuildResourceId }}/'
fi
mkdir -p "$(tarballDir)"
tarballFilePath="$(PIPELINE.WORKSPACE)/${resourceIdPathSegment}BlobArtifacts/dotnet-sdk-source*.tar.gz"
eval tar -ozxf "$tarballFilePath" -C "$(tarballDir)"
eval rm -f "$tarballFilePath"
displayName: Extract Tarball
- script: | - script: |
set -x set -x
@ -135,13 +138,18 @@ jobs:
docker run --rm -v $(tarballDir):/tarball -w /tarball ${networkArgs} $(_Container) ./build.sh --clean-while-building ${customBuildArgs} $(additionalBuildArgs) docker run --rm -v $(tarballDir):/tarball -w /tarball ${networkArgs} $(_Container) ./build.sh --clean-while-building ${customBuildArgs} $(additionalBuildArgs)
displayName: Build Tarball displayName: Build Tarball
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
- task: Bash@3
displayName: Setup Private Feeds Credentials
inputs:
filePath: $(installerSrcDir)/eng/common/SetupNugetSources.sh
arguments: $(tarballDir)/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/online.NuGet.Config $Token
env:
Token: $(dn-bot-dnceng-artifact-feeds-rw)
- script: | - script: |
set -x set -x
# Use installer repo's NuGet.config during online testing to utilize internal feeds
rm -f $(tarballDir)/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/online.NuGet.Config
cp $(Build.SourcesDirectory)/NuGet.config $(tarballDir)/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/online.NuGet.Config
dockerVolumeArgs="-v $(tarballDir):/tarball" dockerVolumeArgs="-v $(tarballDir):/tarball"
dockerEnvArgs="-e SMOKE_TESTS_EXCLUDE_OMNISHARP=$(_ExcludeOmniSharpTests) -e SMOKE_TESTS_WARN_SDK_CONTENT_DIFFS=true" dockerEnvArgs="-e SMOKE_TESTS_EXCLUDE_OMNISHARP=$(_ExcludeOmniSharpTests) -e SMOKE_TESTS_WARN_SDK_CONTENT_DIFFS=true"
poisonArg='' poisonArg=''

View file

@ -0,0 +1,18 @@
trigger: none
jobs:
- template: ../../src/installer/src/SourceBuild/Arcade/eng/common/templates/job/source-build-build-tarball.yml
parameters:
architecture: x64
excludeSdkContentTests: true
matrix:
Ubuntu1804-Offline:
_BootstrapPrep: false
_Container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-20210924170306-047508b
_EnablePoison: false
_ExcludeOmniSharpTests: false
_RunOnline: false
name: Build_Tarball_x64
pool:
name: NetCore1ESPool-Svc-Internal
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64