public IArtifactory Build() { IRestClient restClient = new RestClient { BaseUrl = new Uri(Url), Authenticator = this.Authenticator, UserAgent = this.UserAgent, Proxy = this.Proxy }; IArtifactory artifactory = new ArtifactoryImpl(restClient); return(artifactory); }
public virtual IArtifactory Build() { IRestClient restClient = new RestClient { BaseUrl = new Uri(Url + "artifactory/"), Authenticator = new HttpBasicAuthenticator(UserName, Password), UserAgent = UserAgent ?? ArtifactoryBuilder.DefaultUserAgent, Proxy = this.Proxy }; IArtifactory artifactory = new ArtifactoryImpl(restClient); return(artifactory); }
public UploadDownload(ImportExport importExport, FileSystem fileSystem, Logger logger, string url, string username, string password) { ImportExport = importExport; FileSystem = fileSystem; Logger = logger; var application = "/artifactory/"; if (!url.EndsWith("/")) { url = url + "/"; } if (url.EndsWith(application)) { // The client automatically adds "artifactory" to the URL, so remove it if the user also specified it url = url.Substring(0, url.Length - application.Length) + "/"; } Artifactory = new ArtifactoryImpl(url, username, password); CustomerLib = Artifactory.Repositories.Repository("forcam-customer-lib"); StandardLib = Artifactory.Repositories.Repository("forcam-standard-lib"); Sandbox = Artifactory.Repositories.Repository("sandbox"); }
public IArtifactory Build() { IArtifactory artifactory = new ArtifactoryImpl(RestClient); return(artifactory); }