Skip to content

Instantly share code, notes, and snippets.

@sauceaaron
Last active October 11, 2018 15:25
Show Gist options
  • Save sauceaaron/a3260b680491800a9f90f7f0c35ba86f to your computer and use it in GitHub Desktop.
Save sauceaaron/a3260b680491800a9f90f7f0c35ba86f to your computer and use it in GitHub Desktop.
import com.saucelabs.saucerest.SauceREST;
import java.io.File;
import java.io.IOException;
public class UploadToSauceStorage
{
public static void main(String[] args) throws IOException
{
String SAUCE_USERNAME = System.getenv("SAUCE_USERNAME");
String SAUCE_ACCESS_KEY = System.getenv("SAUCE_ACCESS_KEY");
String PRERUN_FILENAME = System.getenv("PRERUN_FILENAME");
File prerun = new File(PRERUN_FILENAME);
SauceREST api = new SauceREST(SAUCE_USERNAME, SAUCE_ACCESS_KEY);
api.uploadFile(prerun);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment