Tabnine Logo
JenkinsHttpClient.getFile
Code IndexAdd Tabnine to your IDE (free)

How to use
getFile
method
in
com.offbytwo.jenkins.client.JenkinsHttpClient

Best Java code snippets using com.offbytwo.jenkins.client.JenkinsHttpClient.getFile (Showing top 1 results out of 315)

origin: Verigreen/verigreen

  public InputStream downloadArtifact(Artifact a) throws IOException, URISyntaxException {
    //We can't just put the artifact's relative path at the end of the url string,
    //as there could be characters that need to be escaped.
    URI uri = new URI(getUrl());
    String artifactPath = uri.getPath() + "artifact/" + a.getRelativePath();
    URI artifactUri = new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), artifactPath, "", "");
    return client.getFile(artifactUri);
  }
}
com.offbytwo.jenkins.clientJenkinsHttpClientgetFile

Javadoc

Perform a GET request and return the response as InputStream

Popular methods of JenkinsHttpClient

  • <init>
    Create an authenticated Jenkins HTTP client
  • get
  • post
  • post_xml
  • addAuthentication
    Add authentication to supplied builder.
  • api
  • getDefaultMapper
  • getQuietly
  • objectFromResponse
  • post_text
  • releaseConnection
  • urlJoin
  • releaseConnection,
  • urlJoin

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now