Class WebhookRelayAPI
java.lang.Object
com.webhookrelay.jenkins.WebhookRelayAPI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBucket(String name) createInput(String bucketId, String name) createOutput(String bucketId, String name, String destination) findBucketByName(String name) Returns the bucket matching the given name (or id), ornullif none exists.findOrCreateBucket(String name) Finds an existing bucket by name, creating it (with its default public input) if it does not exist.
-
Constructor Details
-
WebhookRelayAPI
-
-
Method Details
-
listBuckets
- Throws:
IOException
-
getBucket
- Throws:
IOException
-
findBucketByName
Returns the bucket matching the given name (or id), ornullif none exists.- Throws:
IOException
-
findOrCreateBucket
Finds an existing bucket by name, creating it (with its default public input) if it does not exist. The returned bucket is always re-fetched so that the auto-created input (and its public endpoint URL) is populated.- Throws:
IOException
-
createBucket
- Throws:
IOException
-
createInput
- Throws:
IOException
-
createOutput
public WebhookRelayAPI.Output createOutput(String bucketId, String name, String destination) throws IOException - Throws:
IOException
-