File tree Expand file tree Collapse file tree 4 files changed +40
-7
lines changed
Expand file tree Collapse file tree 4 files changed +40
-7
lines changed Original file line number Diff line number Diff line change 11# This script adds internal feeds required to build commits that depend on internal package sources. For instance,
2- # dotnet6-internal would be added automatically if dotnet6 was found in the nuget.config file. In addition also enables
3- # disabled internal Maestro (darc-int*) feeds.
2+ # dotnet6-internal would be added automatically if dotnet6 was found in the nuget.config file. Similarly,
3+ # dotnet-eng-internal and dotnet-tools-internal are added if dotnet-eng and dotnet-tools are present.
4+ # In addition, this script also enables disabled internal Maestro (darc-int*) feeds.
45#
56# Optionally, this script also adds a credential entry for each of the internal feeds if supplied.
67#
@@ -173,4 +174,16 @@ foreach ($dotnetVersion in $dotnetVersions) {
173174 }
174175}
175176
177+ # Check for dotnet-eng and add dotnet-eng-internal if present
178+ $dotnetEngSource = $sources.SelectSingleNode (" add[@key='dotnet-eng']" )
179+ if ($dotnetEngSource -ne $null ) {
180+ AddOrEnablePackageSource - Sources $sources - DisabledPackageSources $disabledSources - SourceName " dotnet-eng-internal" - SourceEndPoint " https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-eng-internal/nuget/$feedSuffix " - Creds $creds - Username $userName - pwd $Password
181+ }
182+
183+ # Check for dotnet-tools and add dotnet-tools-internal if present
184+ $dotnetToolsSource = $sources.SelectSingleNode (" add[@key='dotnet-tools']" )
185+ if ($dotnetToolsSource -ne $null ) {
186+ AddOrEnablePackageSource - Sources $sources - DisabledPackageSources $disabledSources - SourceName " dotnet-tools-internal" - SourceEndPoint " https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-tools-internal/nuget/$feedSuffix " - Creds $creds - Username $userName - pwd $Password
187+ }
188+
176189$doc.Save ($filename )
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33# This script adds internal feeds required to build commits that depend on internal package sources. For instance,
4- # dotnet6-internal would be added automatically if dotnet6 was found in the nuget.config file. In addition also enables
5- # disabled internal Maestro (darc-int*) feeds.
4+ # dotnet6-internal would be added automatically if dotnet6 was found in the nuget.config file. Similarly,
5+ # dotnet-eng-internal and dotnet-tools-internal are added if dotnet-eng and dotnet-tools are present.
6+ # In addition, this script also enables disabled internal Maestro (darc-int*) feeds.
67#
78# Optionally, this script also adds a credential entry for each of the internal feeds if supplied.
89#
@@ -173,6 +174,18 @@ for DotNetVersion in ${DotNetVersions[@]} ; do
173174 fi
174175done
175176
177+ # Check for dotnet-eng and add dotnet-eng-internal if present
178+ grep -i " <add key=\" dotnet-eng\" " $ConfigFile > /dev/null
179+ if [ " $? " == " 0" ]; then
180+ AddOrEnablePackageSource " dotnet-eng-internal" " https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-eng-internal/nuget/$FeedSuffix "
181+ fi
182+
183+ # Check for dotnet-tools and add dotnet-tools-internal if present
184+ grep -i " <add key=\" dotnet-tools\" " $ConfigFile > /dev/null
185+ if [ " $? " == " 0" ]; then
186+ AddOrEnablePackageSource " dotnet-tools-internal" " https://pkgs.dev.azure.com/dnceng/internal/_packaging/dotnet-tools-internal/nuget/$FeedSuffix "
187+ fi
188+
176189# I want things split line by line
177190PrevIFS=$IFS
178191IFS=$' \n '
Original file line number Diff line number Diff line change @@ -195,6 +195,11 @@ jobs:
195195 inputs :
196196 version : 8.0.x
197197
198+ # Darc is targeting 8.0, so make sure it's installed
199+ - task : UseDotNet@2
200+ inputs :
201+ version : 8.0.x
202+
198203 - task : AzureCLI@2
199204 displayName : Publish Using Darc
200205 inputs :
Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ parameters:
2424steps :
2525 - ${{ if eq(parameters.enableMicrobuild, 'true') }} :
2626 - ${{ if eq(parameters.enableMicrobuildForMacAndLinux, 'true') }} :
27- # Needed to download the MicroBuild plugin nupkgs on Mac and Linux when nuget.exe is unavailable
27+ # Installing .NET 8 is required to use the MicroBuild signing plugin on non-Windows platforms
2828 - task : UseDotNet@2
2929 displayName : Install .NET 8.0 SDK for MicroBuild Plugin
3030 inputs :
3131 packageType : sdk
3232 version : 8.0.x
33- installationPath : ${{ parameters.microBuildOutputFolder }}/.dotnet
34- workingDirectory : ${{ parameters.microBuildOutputFolder }}
33+ # Installing the SDK in a '.dotnet-microbuild' directory is required for signing.
34+ # See target FindDotNetPathForMicroBuild in arcade/src/Microsoft.DotNet.Arcade.Sdk/tools/Sign.proj
35+ # Do not remove '.dotnet-microbuild' from the path without changing the corresponding logic.
36+ installationPath : $(Agent.TempDirectory)/.dotnet-microbuild
3537 condition : and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT'))
3638
3739 - script : |
You can’t perform that action at this time.
0 commit comments