Skip to content

Commit 334051d

Browse files
authored
Add NuGetAuthenticateV1, use new version of packaging-common (#16066)
* NuGetAuthenticateV1 * package.json updates * update sprint * rebuild after deleting node modules
1 parent e0df424 commit 334051d

File tree

27 files changed

+1439
-537
lines changed

27 files changed

+1439
-537
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Tasks/NuGetV0/ @phil-hodgson @aasim @satbai
303303

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

306-
Tasks/NuGetAuthenticateV0/ @phil-hodgson @aasim @satbai
306+
Tasks/NuGetAuthenticateV1/ @phil-hodgson @aasim @satbai
307307

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

Tasks/NuGetAuthenticateV0/Strings/resources.resjson/en-US/resources.resjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"loc.friendlyName": "NuGet authenticate",
33
"loc.helpMarkDown": "[Learn more about this task](https://aka.ms/NuGetAuthenticateTask)",
4-
"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",
4+
"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.",
55
"loc.instanceNameFormat": "NuGet Authenticate",
66
"loc.input.label.nuGetServiceConnections": "Service connection credentials for feeds outside this organization",
77
"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.",

Tasks/NuGetAuthenticateV0/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ async function main(): Promise<void> {
1212

1313
// Install the credential provider
1414
forceReinstallCredentialProvider = tl.getBoolInput("forceReinstallCredentialProvider", false);
15-
await installCredProviderToUserProfile(forceReinstallCredentialProvider);
15+
await installCredProviderToUserProfile(forceReinstallCredentialProvider, true);
1616

1717
// Configure the credential provider for both same-organization feeds and service connections
1818
const serviceConnections = getPackagingServiceConnections('nuGetServiceConnections');
1919
await configureCredProvider(ProtocolType.NuGet, serviceConnections);
2020
} catch (error) {
2121
tl.setResult(tl.TaskResult.Failed, error);
2222
} finally {
23-
emitTelemetry("Packaging", "NuGetAuthenticate", {
23+
emitTelemetry("Packaging", "NuGetAuthenticateV0", {
2424
'NuGetAuthenticate.ForceReinstallCredentialProvider': forceReinstallCredentialProvider
2525
});
2626
}

Tasks/NuGetAuthenticateV0/package-lock.json

Lines changed: 558 additions & 528 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tasks/NuGetAuthenticateV0/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nugetauthenticate",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "NuGet Authenticate",
55
"main": "main.js",
66
"scripts": {
@@ -23,7 +23,7 @@
2323
},
2424
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
2525
"dependencies": {
26-
"azure-pipelines-tasks-artifacts-common": "1.179.1",
26+
"azure-pipelines-tasks-artifacts-common": "2.202.0",
2727
"azure-pipelines-task-lib": "3.0.6-preview.0",
2828
"@types/node": "10.17.0"
2929
},

Tasks/NuGetAuthenticateV0/task.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "f5fd8599-ccfa-4d6e-b965-4d14bed7097b",
33
"name": "NuGetAuthenticate",
44
"friendlyName": "NuGet authenticate",
5-
"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",
5+
"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.",
66
"author": "Microsoft Corporation",
77
"helpUrl": "https://aka.ms/NuGetAuthenticateTask",
88
"helpMarkDown": "[Learn more about this task](https://aka.ms/NuGetAuthenticateTask)",
@@ -13,9 +13,10 @@
1313
],
1414
"version": {
1515
"Major": 0,
16-
"Minor": 198,
16+
"Minor": 203,
1717
"Patch": 0
1818
},
19+
"deprecated": true,
1920
"minimumAgentVersion": "2.120.0",
2021
"instanceNameFormat": "NuGet Authenticate",
2122
"inputs": [

Tasks/NuGetAuthenticateV0/task.loc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
],
1414
"version": {
1515
"Major": 0,
16-
"Minor": 198,
16+
"Minor": 203,
1717
"Patch": 0
1818
},
19+
"deprecated": true,
1920
"minimumAgentVersion": "2.120.0",
2021
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
2122
"inputs": [
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"loc.friendlyName": "NuGet-Authentifizierung",
3+
"loc.helpMarkDown": "[Weitere Informationen zu dieser Aufgabe](https://aka.ms/NuGetAuthenticateTask)",
4+
"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",
5+
"loc.instanceNameFormat": "NuGet-Authentifizierung",
6+
"loc.input.label.nuGetServiceConnections": "Anmeldeinformationen für Dienstverbindungen für Feeds außerhalb dieser Organisation",
7+
"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.",
8+
"loc.input.label.forceReinstallCredentialProvider": "Anmeldeinformationsanbieter neu installieren, auch wenn er bereits installiert ist",
9+
"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."
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"loc.friendlyName": "NuGet authenticate",
3+
"loc.helpMarkDown": "[Learn more about this task](https://aka.ms/NuGetAuthenticateTask)",
4+
"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",
5+
"loc.instanceNameFormat": "NuGet Authenticate",
6+
"loc.input.label.nuGetServiceConnections": "Service connection credentials for feeds outside this organization",
7+
"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.",
8+
"loc.input.label.forceReinstallCredentialProvider": "Reinstall the credential provider even if already installed",
9+
"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."
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"loc.friendlyName": "Autenticación de NuGet",
3+
"loc.helpMarkDown": "[Obtener más información acerca de esta tarea](https://aka.ms/NuGetAuthenticateTask)",
4+
"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",
5+
"loc.instanceNameFormat": "Autenticación de NuGet",
6+
"loc.input.label.nuGetServiceConnections": "Credenciales de conexión de servicio para fuentes fuera de esta organización",
7+
"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.",
8+
"loc.input.label.forceReinstallCredentialProvider": "Reinstalar el proveedor de credenciales, aunque ya esté instalado",
9+
"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."
10+
}

0 commit comments

Comments
 (0)