Dank Eddie,
fand ich eine Lösung für diese mit Ihrer Hilfe, war ich mit 0.5.8 Version der VSTS-Task-lib Bibliothek und aktualisieren Sie es auf 0.9.7 und hat die folgenden
//Import the task lib 0.9.7
import tl = require('vsts-task-lib/task');
//Get the endpoint ID (a guid)
serverEndpoint = tl.getInput('serverEndpoint', true);
//Get the enpoint URL for the retrieved end point id and parse it to URL type
serverEndpointUrl: url.Url = url.parse(tl.getEndpointUrl(this.serverEndpoint, false));
//Extract authentication details from url
serverEndpointAuth = tl.getEndpointAuthorization(this.serverEndpoint, false);
//Read parameters to variable
//NOTE: You cant write this data to console, if you do write, it will write //asterisk (****) instead of real values.
username = this.serverEndpointAuth['parameters']['username'];
password = this.serverEndpointAuth['parameters']['password'];
//Pass the variables as parameters.
Was ist der Typ Ihrer Erweiterung, eine Build-Aufgabe? –
Ja, es ist eine Build-Erweiterung. – Bandara