Skip to content

Commit

Permalink
Add NuGetAuthenticateV1, use new version of packaging-common (#16066)
Browse files Browse the repository at this point in the history
* NuGetAuthenticateV1

* package.json updates

* update sprint

* rebuild after deleting node modules
  • Loading branch information
satbai authored Apr 7, 2022
1 parent e0df424 commit 334051d
Show file tree
Hide file tree
Showing 27 changed files with 1,439 additions and 537 deletions.
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
1,086 changes: 558 additions & 528 deletions Tasks/NuGetAuthenticateV0/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Tasks/NuGetAuthenticateV0/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nugetauthenticate",
"version": "0.1.0",
"version": "1.0.0",
"description": "NuGet Authenticate",
"main": "main.js",
"scripts": {
Expand All @@ -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": 203,
"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": 203,
"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": "資格情報プロバイダーがユーザー プロファイルに既にインストールされている場合に、タスクで指定された資格情報プロバイダーでそれを上書きするかどうかを決定します。これにより、資格情報プロバイダーがアップグレード (場合によってはダウングレード) されることがあります。"
}
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": "자격 증명 공급자가 사용자 프로필에 이미 설치되어 있는 경우 작업에서 제공하는 자격 증명 공급자로 덮어쓸지 여부를 결정합니다. 이는 자격 증명 공급자를 업그레이드하거나 잠재적으로 다운그레이드할 수 있습니다."
}
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": "Настройте средства NuGet для проверки подлинности с помощью Azure Artifacts и других репозиториев 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": "Если поставщик учетных данных уже установлен в профиле пользователя, параметр определяет, перезаписывается ли он поставщиком учетных данных, предоставленным задачей. Это может привести к обновлению (или, возможно, использованию более ранней версии) поставщика учетных данных."
}
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": "配置 NuGet 工具以使用 Azure Artifacts 和其他 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": "如果已在用户配置文件中安装凭据提供程序,请确定它是否被任务提供的凭据提供程序覆盖。这可能会升级(或可能降级)凭据提供程序。"
}
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": "如果使用者設定檔中已安裝認證提供者,則會決定是否使用工作提供的認證提供者加以覆寫。這可能會將認證提供者升級 (也可能降級)。"
}
Binary file added Tasks/NuGetAuthenticateV1/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Tasks/NuGetAuthenticateV1/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 334051d

Please sign in to comment.