//public ArtifactoryBuildInfoClient(string artifactoryUrl) { // (artifactoryUrl, null, null); //} public ArtifactoryBuildInfoClient(string artifactoryUrl, string username, string password, BuildInfoLog log) { //Removing ending slash if ((!string.IsNullOrEmpty(artifactoryUrl)) && artifactoryUrl.EndsWith("/")) { artifactoryUrl = artifactoryUrl.Remove(artifactoryUrl.LastIndexOf('/')); } _httpClient = new ArtifactoryHttpClient(artifactoryUrl, username, password); _artifactoryUrl = artifactoryUrl; _log = log; }
//public ArtifactoryBuildInfoClient(string artifactoryUrl) { // (artifactoryUrl, null, null); //} public ArtifactoryBuildInfoClient(string artifactoryUrl, string username, string password, BuildInfoLog log) { //Removing ending slash if ((!string.IsNullOrEmpty(artifactoryUrl)) && artifactoryUrl.EndsWith("/")) { artifactoryUrl = artifactoryUrl.Remove(artifactoryUrl.LastIndexOf('/')); } _httpClient = new ArtifactoryHttpClient(artifactoryUrl, username, password); _artifactoryUrl = artifactoryUrl; _log = log; }