Last active
October 11, 2018 15:25
-
-
Save sauceaaron/a3260b680491800a9f90f7f0c35ba86f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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