Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cred provider and add new NuGetAuthenticate major version #15993

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Tasks/NuGetV0/ @phil-hodgson @aasim @satbai

Tasks/NuGetCommandV2/ @phil-hodgson @aasim @satbai

Tasks/NuGetAuthenticateV0/ @phil-hodgson @aasim @satbai
Tasks/NuGetAuthenticateV1/ @phil-hodgson @aasim @satbai

Tasks/NuGetInstallerV0/ @phil-hodgson @aasim @satbai

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"loc.friendlyName": "NuGet authenticate",
"loc.helpMarkDown": "[Learn more about this task](https://aka.ms/NuGetAuthenticateTask)",
"loc.description": "Configure NuGet tools to authenticate with Azure Artifacts and other NuGet repositories. Requires NuGet >= 4.8.5385, dotnet >= 2.1.400, or MSBuild >= 15.8.166.59604",
"loc.description": "This version of the task is deprecated, use NuGetAuthenticateV1 instead. Configure NuGet tools to authenticate with Azure Artifacts and other NuGet repositories. Requires NuGet >= 4.8.5385, dotnet >= 2.1.400, or MSBuild >= 15.8.166.59604.",
"loc.instanceNameFormat": "NuGet Authenticate",
"loc.input.label.nuGetServiceConnections": "Service connection credentials for feeds outside this organization",
"loc.input.help.nuGetServiceConnections": "Comma-separated list of NuGet service connection names for feeds outside this organization/collection. For feeds in this organization/collection, leave this blank; the build’s credentials are used automatically.",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/NuGetAuthenticateV0/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ async function main(): Promise<void> {

// Install the credential provider
forceReinstallCredentialProvider = tl.getBoolInput("forceReinstallCredentialProvider", false);
await installCredProviderToUserProfile(forceReinstallCredentialProvider);
await installCredProviderToUserProfile(forceReinstallCredentialProvider, true);

// Configure the credential provider for both same-organization feeds and service connections
const serviceConnections = getPackagingServiceConnections('nuGetServiceConnections');
await configureCredProvider(ProtocolType.NuGet, serviceConnections);
} catch (error) {
tl.setResult(tl.TaskResult.Failed, error);
} finally {
emitTelemetry("Packaging", "NuGetAuthenticate", {
emitTelemetry("Packaging", "NuGetAuthenticateV0", {
'NuGetAuthenticate.ForceReinstallCredentialProvider': forceReinstallCredentialProvider
});
}
Expand Down
100 changes: 47 additions & 53 deletions Tasks/NuGetAuthenticateV0/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Tasks/NuGetAuthenticateV0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
"dependencies": {
"azure-pipelines-tasks-artifacts-common": "1.179.1",
"azure-pipelines-tasks-artifacts-common": "2.202.0",
"azure-pipelines-task-lib": "3.0.6-preview.0",
"@types/node": "10.17.0"
},
Expand Down
5 changes: 3 additions & 2 deletions Tasks/NuGetAuthenticateV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "f5fd8599-ccfa-4d6e-b965-4d14bed7097b",
"name": "NuGetAuthenticate",
"friendlyName": "NuGet authenticate",
"description": "Configure NuGet tools to authenticate with Azure Artifacts and other NuGet repositories. Requires NuGet >= 4.8.5385, dotnet >= 2.1.400, or MSBuild >= 15.8.166.59604",
"description": "This version of the task is deprecated, use NuGetAuthenticateV1 instead. Configure NuGet tools to authenticate with Azure Artifacts and other NuGet repositories. Requires NuGet >= 4.8.5385, dotnet >= 2.1.400, or MSBuild >= 15.8.166.59604.",
"author": "Microsoft Corporation",
"helpUrl": "https://aka.ms/NuGetAuthenticateTask",
"helpMarkDown": "[Learn more about this task](https://aka.ms/NuGetAuthenticateTask)",
Expand All @@ -13,9 +13,10 @@
],
"version": {
"Major": 0,
"Minor": 198,
"Minor": 202,
"Patch": 0
},
"deprecated": true,
"minimumAgentVersion": "2.120.0",
"instanceNameFormat": "NuGet Authenticate",
"inputs": [
Expand Down
3 changes: 2 additions & 1 deletion Tasks/NuGetAuthenticateV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
],
"version": {
"Major": 0,
"Minor": 198,
"Minor": 202,
"Patch": 0
},
"deprecated": true,
"minimumAgentVersion": "2.120.0",
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
"inputs": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"loc.friendlyName": "NuGet-Authentifizierung",
"loc.helpMarkDown": "[Weitere Informationen zu dieser Aufgabe](https://aka.ms/NuGetAuthenticateTask)",
"loc.description": "Konfigurieren Sie NuGet-Tools für die Authentifizierung bei Azure Artifacts und anderen NuGet-Repositorys. Erfordert NuGet >= 4.8.5385, .NET >= 2.1.400 oder MSBuild >= 15.8.166.59604",
"loc.instanceNameFormat": "NuGet-Authentifizierung",
"loc.input.label.nuGetServiceConnections": "Anmeldeinformationen für Dienstverbindungen für Feeds außerhalb dieser Organisation",
"loc.input.help.nuGetServiceConnections": "Durch Trennzeichen getrennte Liste mit NuGet-Dienstverbindungsnamen für Feeds außerhalb dieser Organisation/Sammlung. Lassen Sie dieses Feld für Feeds in dieser Organisation/Sammlung leer. Es werden automatisch die Anmeldeinformationen des Builds verwendet.",
"loc.input.label.forceReinstallCredentialProvider": "Anmeldeinformationsanbieter neu installieren, auch wenn er bereits installiert ist",
"loc.input.help.forceReinstallCredentialProvider": "Wenn der Anmeldeinformationsanbieter bereits im Benutzerprofil installiert ist, wird bestimmt, ob er mit dem durch die Aufgabe angegebenen Anmeldeinformationsanbieter überschrieben wird. Hierdurch wird möglicherweise ein Upgrade (oder Downgrade) für den Anmeldeinformationsanbieter durchgeführt."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"loc.friendlyName": "NuGet authenticate",
"loc.helpMarkDown": "[Learn more about this task](https://aka.ms/NuGetAuthenticateTask)",
"loc.description": "Configure NuGet tools to authenticate with Azure Artifacts and other NuGet repositories. Requires NuGet >= 4.8.5385, dotnet >= 6, or MSBuild >= 15.8.166.59604",
"loc.instanceNameFormat": "NuGet Authenticate",
"loc.input.label.nuGetServiceConnections": "Service connection credentials for feeds outside this organization",
"loc.input.help.nuGetServiceConnections": "Comma-separated list of NuGet service connection names for feeds outside this organization/collection. For feeds in this organization/collection, leave this blank; the build’s credentials are used automatically.",
"loc.input.label.forceReinstallCredentialProvider": "Reinstall the credential provider even if already installed",
"loc.input.help.forceReinstallCredentialProvider": "If the credential provider is already installed in the user profile, determines if it is overwritten with the task-provided credential provider. This may upgrade (or potentially downgrade) the credential provider."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"loc.friendlyName": "Autenticación de NuGet",
"loc.helpMarkDown": "[Obtener más información acerca de esta tarea](https://aka.ms/NuGetAuthenticateTask)",
"loc.description": "Configure las herramientas de NuGet para autenticar con Azure Artifacts y otros repositorios de NuGet. Requiere NuGet >= 4.8.5385, dotnet >= 2.1.400 o MSBuild >= 15.8.166.59604",
"loc.instanceNameFormat": "Autenticación de NuGet",
"loc.input.label.nuGetServiceConnections": "Credenciales de conexión de servicio para fuentes fuera de esta organización",
"loc.input.help.nuGetServiceConnections": "Lista separada por comas de nombres de conexión de servicio NuGet para fuentes que se encuentran fuera de esta organización o colección. Déjela en blanco para las fuentes de esta organización o colección; las credenciales de la compilación se usan de forma automática.",
"loc.input.label.forceReinstallCredentialProvider": "Reinstalar el proveedor de credenciales, aunque ya esté instalado",
"loc.input.help.forceReinstallCredentialProvider": "Si el proveedor de credenciales ya está instalado en el perfil de usuario, determina si se sobrescribe con el proveedor de credenciales proporcionado por la tarea. Esto puede actualizar (o posiblemente cambiar a una versión anterior) el proveedor de credenciales."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"loc.friendlyName": "Authentification NuGet",
"loc.helpMarkDown": "[En savoir plus sur cette tâche](https://aka.ms/NuGetAuthenticateTask)",
"loc.description": "Configurez les outils NuGet pour l'authentification auprès d'Azure Artifacts et d'autres dépôts NuGet. Nécessite NuGet >= 4.8.5385, dotnet >= 2.1.400 ou MSBuild >= 15.8.166.59604",
"loc.instanceNameFormat": "Authentification NuGet",
"loc.input.label.nuGetServiceConnections": "Informations d'identification de connexion de service pour les flux situés en dehors de cette organisation",
"loc.input.help.nuGetServiceConnections": "Liste d'éléments séparés par des virgules correspondant à des noms de connexions de service NuGet pour les flux situés en dehors de cette organisation/collection. Pour les flux présents dans cette organisation/collection, n'indiquez aucune valeur. Les informations d'identification de la build sont utilisées automatiquement.",
"loc.input.label.forceReinstallCredentialProvider": "Réinstaller le fournisseur d'informations d'identification même s'il est déjà installé",
"loc.input.help.forceReinstallCredentialProvider": "Si le fournisseur d'informations d'identification est déjà installé dans le profil utilisateur, détermine s'il est remplacé par le fournisseur d'informations d'identification indiqué par la tâche. Cela peut entraîner une mise à niveau (ou éventuellement un passage à une version antérieure) du fournisseur d'informations d'identification."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"loc.friendlyName": "Autenticazione NuGet",
"loc.helpMarkDown": "[Altre informazioni su questa attività](https://aka.ms/NuGetAuthenticateTask)",
"loc.description": "Configura gli strumenti NuGet per l'autenticazione con Azure Artifacts e altri repository NuGet. Richiede NuGet >= 4.8.5385, .NET >= 2.1.400 oppure MSBuild >= 15.8.166.59604",
"loc.instanceNameFormat": "Autenticazione NuGet",
"loc.input.label.nuGetServiceConnections": "Credenziali di connessione al servizio per feed esterni all'organizzazione",
"loc.input.help.nuGetServiceConnections": "Elenco di nomi di connessione al servizio NuGet delimitato da virgole per i feed esterni a questa organizzazione/raccolta. Per i feed in questa organizzazione/raccolta, lasciare vuoto questo campo. Verranno usate automaticamente le credenziali della compilazione.",
"loc.input.label.forceReinstallCredentialProvider": "Reinstalla il provider di credenziali anche se è già installato",
"loc.input.help.forceReinstallCredentialProvider": "Se il provider di credenziali è già installato nel profilo utente, determina se viene sovrascritto con il provider di credenziali specificato dall'attività. Potrebbe causare l'aggiornamento o il downgrade del provider di credenziali."
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"loc.friendlyName": "NuGet 認証",
"loc.helpMarkDown": "[このタスクの詳細を表示](https://aka.ms/NuGetAuthenticateTask)",
"loc.description": "Azure Artifacts とその他の NuGet リポジトリで認証するように NuGet ツールを構成します。NuGet 4.8.5385 以上、dotnet 2.1.400 以上、MSBuild 15.8.166.59604 以上が必要です",
"loc.instanceNameFormat": "NuGet 認証",
"loc.input.label.nuGetServiceConnections": "この組織外のフィードへのサービス接続の資格情報",
"loc.input.help.nuGetServiceConnections": "この組織またはコレクション外のフィードへの NuGet サービス接続名のコンマ区切りリストです。この組織またはコレクション内のフィードの場合は空白のままにします。ビルドの資格情報が自動的に使用されます。",
"loc.input.label.forceReinstallCredentialProvider": "資格情報プロバイダーが既にインストールされている場合でも再インストールする",
"loc.input.help.forceReinstallCredentialProvider": "資格情報プロバイダーがユーザー プロファイルに既にインストールされている場合に、タスクで指定された資格情報プロバイダーでそれを上書きするかどうかを決定します。これにより、資格情報プロバイダーがアップグレード (場合によってはダウングレード) されることがあります。"
}
Loading