diff --git a/build/template-install-dependencies.yaml b/build/template-install-dependencies.yaml index 5f3927521..415217436 100644 --- a/build/template-install-dependencies.yaml +++ b/build/template-install-dependencies.yaml @@ -1,5 +1,7 @@ #template-install-dependencies.yaml - +parameters: + authenticateForFeed: 'true' + #install dotnet core steps: @@ -46,6 +48,7 @@ steps: - task: NuGetAuthenticate@1 displayName: NuGet Authenticate + condition: eq('${{ parameters.authenticateForFeed }}', 'true') inputs: nuGetServiceConnections: 'IDDP Feed' diff --git a/build/template-onebranch-release-build.yaml b/build/template-onebranch-release-build.yaml index 302a76ad2..76bc2301a 100644 --- a/build/template-onebranch-release-build.yaml +++ b/build/template-onebranch-release-build.yaml @@ -9,6 +9,8 @@ steps: # Bootstrap the build - template: template-install-dependencies.yaml + parameters: + authenticateForFeed: 'false' # Nuget Restore and Build Microsoft.Identity.Web.sln - template: template-restore-build-MSIdentityWeb.yaml