public class DroneClient extends Object implements Closeable
This class also take in account also the Jenkins proxy settings.
| Constructor and Description |
|---|
DroneClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected org.apache.http.client.fluent.Executor |
createExecutor() |
void |
setChannel(String channel) |
void |
setCredentials(String user,
String password) |
void |
setProxy(hudson.ProxyConfiguration proxy) |
void |
setServerURL(String serverURL) |
org.apache.http.HttpResponse |
uploadToChannelV2(Map<String,String> properties,
String artifact,
File file) |
org.apache.http.HttpResponse |
uploadToChannelV3(File file) |
public void setChannel(String channel)
public void setProxy(hudson.ProxyConfiguration proxy)
public org.apache.http.HttpResponse uploadToChannelV2(Map<String,String> properties, String artifact, File file) throws IOException
IOExceptionpublic org.apache.http.HttpResponse uploadToChannelV3(File file) throws IOException
IOExceptionprotected org.apache.http.client.fluent.Executor createExecutor()
public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2016–2018. All rights reserved.