Package io.jenkins.plugins.pgyer.client
Class PgyerClient
java.lang.Object
io.jenkins.plugins.pgyer.client.PgyerClient
Uploads a build with the PGYER API: get a COS upload token, send the file to COS, then wait for
PGYER to publish the build. Runs on the agent that holds the file and has no Jenkins dependencies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionTried in order; the later ones help when DNS for the main domain is blocked or hijacked. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_API_SERVERS
Tried in order; the later ones help when DNS for the main domain is blocked or hijacked.
-
-
Constructor Details
-
PgyerClient
-
-
Method Details
-
upload
public Map<String,String> upload(Path file, UploadOptions options) throws IOException, InterruptedException Uploadsfileand returns the build information PGYER reports once it is published.- Throws:
IOExceptionInterruptedException
-