Skip to content

Commit 1674f77

Browse files
dotnet-maestro-botlbussellMichaelSimonsvseanreesermsftmarcpopMSFT
authored
[automated] Merge branch 'release/6.0.1xx' => 'release/6.0.3xx' (#15058)
* [release/6.0.1xx] Add CI for security-partners-dotnet (#14963) * Add CI for dotnet-security-partners * Remove nuget configs from all repo submodules * Address code review * Move security-partners ci to tarball/eng dir * Copy out installer NuGet config before build * Fix relative path for installer template * Update src/SourceBuild/Arcade/eng/common/templates/job/source-build-build-tarball.yml Co-authored-by: Michael Simons <msimons@microsoft.com> * Revert "Remove nuget configs from all repo submodules" This reverts commit 87b8a2c. Co-authored-by: Michael Simons <msimons@microsoft.com> * Update branding to 6.0.113 Co-authored-by: Logan Bussell <loganbussell@microsoft.com> Co-authored-by: Michael Simons <msimons@microsoft.com> Co-authored-by: Sean Reeser <v-seanreeser@microsoft.com> Co-authored-by: Marc Paine <marcpop@microsoft.com> Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
1 parent eead96c commit 1674f77

File tree

2 files changed

+57
-31
lines changed

2 files changed

+57
-31
lines changed

src/SourceBuild/Arcade/eng/common/templates/job/source-build-build-tarball.yml

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,44 @@ jobs:
4343
- name: additionalBuildArgs
4444
value: --with-sdk /tarball/.dotnet
4545
- name: tarballDir
46-
value: $(Build.StagingDirectory)/tarball
46+
${{ if eq(parameters.installerBuildResourceId, '') }}:
47+
value: $(Build.SourcesDirectory)
48+
${{ else }}:
49+
value: $(Build.StagingDirectory)/tarball
50+
- name: installerSrcDir
51+
${{ if eq(parameters.installerBuildResourceId, '') }}:
52+
value: $(Build.SourcesDirectory)/src/installer
53+
${{ else }}:
54+
value: $(Build.SourcesDirectory)
4755
workspace:
4856
clean: all
4957

5058
steps:
5159
- checkout: self
5260
clean: true
5361

54-
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
55-
- task: Bash@3
56-
displayName: Setup Private Feeds Credentials
57-
inputs:
58-
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.sh
59-
arguments: $(Build.SourcesDirectory)/NuGet.config $Token
60-
env:
61-
Token: $(dn-bot-dnceng-artifact-feeds-rw)
62+
- ${{ if ne(parameters.installerBuildResourceId, '') }}:
63+
- download: ${{ parameters.installerBuildResourceId }}
64+
artifact: BlobArtifacts
65+
patterns: '**/dotnet-sdk-source*.tar.gz'
66+
displayName: Download Source Tarball
67+
68+
- script: |
69+
set -x
6270
63-
- download: ${{ parameters.installerBuildResourceId }}
64-
artifact: BlobArtifacts
65-
patterns: '**/dotnet-sdk-source*.tar.gz'
66-
displayName: Download Source Tarball
71+
resourceIdPathSegment=
72+
if [[ '${{ parameters.installerBuildResourceId }}' != 'current' ]]; then
73+
resourceIdPathSegment='${{ parameters.installerBuildResourceId }}/'
74+
fi
75+
76+
mkdir -p "$(tarballDir)"
77+
tarballFilePath="$(PIPELINE.WORKSPACE)/${resourceIdPathSegment}BlobArtifacts/dotnet-sdk-source*.tar.gz"
78+
eval tar -ozxf "$tarballFilePath" -C "$(tarballDir)"
79+
eval rm -f "$tarballFilePath"
80+
displayName: Extract Tarball
81+
82+
- script: cp $(installerSrcDir)/NuGet.config $(tarballDir)/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/online.NuGet.Config
83+
displayName: Copy Test NuGet Config
6784

6885
- ${{ if ne(parameters.excludeSdkContentTests, 'true') }}:
6986
- download: ${{ parameters.installerBuildResourceId }}
@@ -84,20 +101,6 @@ jobs:
84101
Contents: '*.tar.gz'
85102
TargetFolder: $(tarballDir)/packages/archive/
86103

87-
- script: |
88-
set -x
89-
90-
resourceIdPathSegment=
91-
if [[ '${{ parameters.installerBuildResourceId }}' != 'current' ]]; then
92-
resourceIdPathSegment='${{ parameters.installerBuildResourceId }}/'
93-
fi
94-
95-
mkdir -p "$(tarballDir)"
96-
tarballFilePath="$(PIPELINE.WORKSPACE)/${resourceIdPathSegment}BlobArtifacts/dotnet-sdk-source*.tar.gz"
97-
eval tar -ozxf "$tarballFilePath" -C "$(tarballDir)"
98-
eval rm -f "$tarballFilePath"
99-
displayName: Extract Tarball
100-
101104
- script: |
102105
set -x
103106
@@ -135,13 +138,18 @@ jobs:
135138
docker run --rm -v $(tarballDir):/tarball -w /tarball ${networkArgs} $(_Container) ./build.sh --clean-while-building ${customBuildArgs} $(additionalBuildArgs)
136139
displayName: Build Tarball
137140
141+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
142+
- task: Bash@3
143+
displayName: Setup Private Feeds Credentials
144+
inputs:
145+
filePath: $(installerSrcDir)/eng/common/SetupNugetSources.sh
146+
arguments: $(tarballDir)/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/online.NuGet.Config $Token
147+
env:
148+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
149+
138150
- script: |
139151
set -x
140152
141-
# Use installer repo's NuGet.config during online testing to utilize internal feeds
142-
rm -f $(tarballDir)/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/online.NuGet.Config
143-
cp $(Build.SourcesDirectory)/NuGet.config $(tarballDir)/test/Microsoft.DotNet.SourceBuild.SmokeTests/assets/online.NuGet.Config
144-
145153
dockerVolumeArgs="-v $(tarballDir):/tarball"
146154
dockerEnvArgs="-e SMOKE_TESTS_EXCLUDE_OMNISHARP=$(_ExcludeOmniSharpTests) -e SMOKE_TESTS_WARN_SDK_CONTENT_DIFFS=true"
147155
poisonArg=''
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
trigger: none
2+
3+
jobs:
4+
- template: ../../src/installer/src/SourceBuild/Arcade/eng/common/templates/job/source-build-build-tarball.yml
5+
parameters:
6+
architecture: x64
7+
excludeSdkContentTests: true
8+
matrix:
9+
Ubuntu1804-Offline:
10+
_BootstrapPrep: false
11+
_Container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-20210924170306-047508b
12+
_EnablePoison: false
13+
_ExcludeOmniSharpTests: false
14+
_RunOnline: false
15+
name: Build_Tarball_x64
16+
pool:
17+
name: NetCore1ESPool-Svc-Internal
18+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64

0 commit comments

Comments
 (0)