Package testingbot
Class TestingBotUploader
java.lang.Object
testingbot.TestingBotUploader
Uploads a built app (
.apk/.ipa, or a .zip of an iOS Simulator
.app) to TestingBot Storage and returns the resulting tb:// app URL. Shared by the
freestyle TestingBotUploadBuilder build
step and the pipeline testingbotUpload step.
The upload runs on the node that holds the artifact (the build's agent), mirroring how the tunnel boots on the agent: the app bytes are read locally and POSTed straight to the TestingBot API, rather than streaming the whole artifact back to the controller. Only the decrypted key/secret cross the (encrypted) remoting link, never the credential object.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringupload(FilePath app, TestingBotCredentials credentials, TaskListener listener) Uploadsappto TestingBot Storage using the given credentials and returns the app URL (for exampletb://app.apk).
-
Method Details
-
upload
public static String upload(@NonNull FilePath app, @NonNull TestingBotCredentials credentials, @NonNull TaskListener listener) throws IOException, InterruptedException Uploadsappto TestingBot Storage using the given credentials and returns the app URL (for exampletb://app.apk). Runs on the file's node.- Throws:
AbortException- if the file is missing, is a directory, or the API returns no app URL.IOExceptionInterruptedException
-