-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix build * Nuget authenticate without source * resilience to jobs * Cleaner way to remove the external feed and add the internal one * Adding a display
- Loading branch information
Showing
4 changed files
with
8 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,22 +11,21 @@ steps: | |
dotnet workload restore $(IdWebSourceDir)tests\DevApps\blazorwasm-b2c\blazorwasm2-b2c.csproj | ||
displayName: 'Install wasm-tools' | ||
|
||
- task: NuGetAuthenticate@1 | ||
displayName: NuGet Authenticate | ||
inputs: | ||
nuGetServiceConnections: 'IDDP Feed' | ||
|
||
- script: dotnet nuget update source NuGet --source https://identitydivision.pkgs.visualstudio.com/_packaging/IDDP/nuget/v3/index.json --configfile "$(Build.SourcesDirectory)\Nuget.config" | ||
displayName: 'Add NuGet Source for MISE' | ||
- powershell: | | ||
$nugetSourceIsExternal = (dotnet nuget list source --format Short).Contains("https://api.nuget.org/v3/index.json") | ||
if ($nugetSourceIsExternal) { | ||
dotnet nuget remove source NuGet | ||
dotnet nuget add source https://identitydivision.pkgs.visualstudio.com/_packaging/IDDP/nuget/v3/index.json -n IDDP | ||
dotnet nuget list source | ||
} | ||
displayName: 'Remove external "NuGet" Source and add "IDDP artifacts" as a NuGet Source, if needed.' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'Build solution Microsoft.Identity.Web.sln' | ||
inputs: | ||
command: 'custom' | ||
custom: 'build' | ||
projects: '$(IdWebSourceDir)Microsoft.Identity.Web.sln' | ||
feedsToUse: 'config' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jmprieur
Author
Collaborator
|
||
nugetConfigPath: NuGet.config | ||
arguments: '-p:configuration=${{ parameters.BuildConfiguration }} -p:RunCodeAnalysis=true -p:MicrosoftIdentityWebVersion=${{ parameters.MicrosoftIdentityWebVersion }} -p:SourceLinkCreate=true' | ||
|
||
# This task is needed so that the 1CS Rolsyn analyzers task works. | ||
|
Why did we remove these two lines from the build task and not from the subsequent dotnetCoreCLI@2 tasks?