Upload a packaged build from a build machine or a pipeline, and wait for its stream test - with a ready script, a workflow or your own code. Every way ends with PASSED or FAILED and an exit code, so a pipeline stops on a failed build. Part of E3DS CI/CD.
| You want to | Use | What it does |
|---|---|---|
| Upload from inside Unreal | E3DS CI/CD plugin for Unreal | Packages, zips and uploads from the Unreal Editor. |
| Upload with Python | Python script | Python 3.8+, nothing to install. macOS, Linux or Windows. |
| Upload from Windows with nothing to install | PowerShell script | Built into Windows 10 and 11. |
| Upload with Node.js, no packages | Node.js script | Node.js 18+. |
| Upload from your own Node.js code | E3DS CI/CD for Node.js (npm) | One function call: zip path, API key, app name. |
| Upload on every build | GitHub Actions; Jenkins, Azure DevOps | The upload runs right after packaging; a failed test stops the pipeline. |
| Write your own uploader, any language | REST API | The same steps as the scripts, request by request. |
| Upload now and then, by hand | The Control Panel uploader | Checks the zip before it leaves your computer, uploads, tests. |
Whatever you use, every upload is stream tested: the build is started on a streaming machine and must show a picture before it is marked ready. A build that cannot start is reported with the reason, before any viewer sees it.
E3DS_API_KEY..exe and its project folder; Unity: the build folder)._. Uploading again under the same name adds a new
version of that app.v1795139555393.--no-wait, in PowerShell -NoWait, to upload
without waiting). If an upload stops, run the same command again: it continues where it stopped.Every upload made with the Python, PowerShell and Node.js scripts, the E3DS CLI and the REST API is resumable. A big build never has to start again from zero because a connection dropped.
1. upload started: app 'MyGame', version v1795161535351, 22 part(s) of 10 MB, 4 at a time - resuming, 14 part(s) already sentThe version number stays the same - it is the same upload, continued.
Our server recognises an unfinished upload by three things: the app name, the file name
and the file size. When the script gives up on the network, it ends with exit code 4
(the E3DS CLI: 5) - not 1, which is kept for a build that failed its stream test - so a
pipeline can tell the two apart and simply run the upload step again.
| What happened | What to do | What happens |
|---|---|---|
| A part failed once or twice | Nothing | The script sends that part again by itself. |
| The upload stopped (network down, window closed, Ctrl+C) | Run the same command again within 24 hours | It continues with the missing parts; nothing already sent is sent again. |
| You changed the zip (a new build) | Run the command | A new upload starts - a zip with a different size is a new version. |
| The upload finished, and you run the same command again | Nothing to do | A new upload starts and the whole zip is sent again, as a new version. |
| More than 24 hours passed | Run the command | A new upload starts from the beginning. |
In a build pipeline this means a retry step is enough: if the upload step fails because of the network, running it again finishes the same upload instead of sending the whole build a second time.
Tip for pipelines: give every build's zip its own name, for example with the build number
(MyGame-1234.zip). A new build almost always has a different size, but if an unfinished upload of a zip
with the same name and the same size is still waiting, the new zip would continue it - a unique name makes sure every
build starts its own upload.
On a Windows build machine with Unreal Engine installed, package the project for Windows and zip the result:
# package (adjust the engine and project paths)
& "C:\Program Files\Epic Games\UE_5.5\Engine\Build\BatchFiles\RunUAT.bat" BuildCookRun `
-project="C:\Projects\MyGame\MyGame.uproject" -platform=Win64 -clientconfig=Shipping `
-build -cook -stage -pak -archive -archivedirectory="C:\Builds\MyGame"
# zip the packaged folder (the one that holds MyGame.exe and the MyGame folder)
Compress-Archive -Path "C:\Builds\MyGame\Windows\*" -DestinationPath "C:\Builds\MyGame.zip" -Force
Then upload MyGame.zip with any of the ways above. More on the zip: prepare your app in Unreal.
Store the API key as a secret of your pipeline and expose it as E3DS_API_KEY. Run the
script right after packaging. The exit code is 0 only when the build passed the stream test, so a failed build stops
the pipeline there.
GitHub Actions, step by step with a video: Upload on every build with GitHub Actions.
stage('Upload to Eagle 3D Streaming') {
steps {
withCredentials([string(credentialsId: 'e3ds-api-key', variable: 'E3DS_API_KEY')]) {
bat 'python e3ds_upload.py C:\\Builds\\MyGame.zip MyGame'
}
}
}
- task: PowerShell@2
displayName: Upload to Eagle 3D Streaming
env:
E3DS_API_KEY: $(E3DS_API_KEY) # a secret pipeline variable
inputs:
filePath: e3ds-upload.ps1
arguments: C:\Builds\MyGame.zip MyGame
| The script says | What it means |
|---|---|
| Set E3DS_API_KEY to your API key first | The environment variable is missing in this terminal. |
| Could not start the upload (HTTP 401 / 403) | The API key is wrong or belongs to another account. |
| Could not start the upload (HTTP 400: app: 1-100 characters, letters, digits and _ only.) | The app name has a space or another character that is not allowed. |
| Could not start the upload ... (a message about storage) | Your storage is full: free space or add storage in the Control Panel. |
| try 3/6 failed ... trying again | A network hiccup; the script retries by itself. |
| UPLOAD FAILED: giving up after 6 tries ... | The network was gone for longer than about a minute. Exit code 4. Run the same command again: it continues where it stopped. |
| REPLACED by a newer upload ... | You uploaded the same app again before this version was tested; only the newest upload is tested and can go live. Exit code 2 - the newer upload reports its own result. |
| PASSED, but a newer version is live | This build passed, but a newer upload of the app passed first; the newest one stays live and this one is kept as a version. Exit code 0. |
| FAILED: ... | The build did not start in the stream test - see the stream test report for the reasons. |
| NO RESULT after 45 minutes | The test is still queued or running; the result comes by email and in the Control Panel. Exit code 3. |
| The upload ended with | Python, PowerShell and Node.js scripts | E3DS CLI |
|---|---|---|
PASSED (also "PASSED, but a newer version is live"), or uploaded with --no-wait | 0 | 0 |
| FAILED: the build did not pass the stream test | 1 | 1 |
| REPLACED: not tested, a newer upload of the same app is tested instead | 2 | 6 |
| No result within the timeout | 3 | 4 |
| The upload itself failed: API key, app name, file, or the network (run it again to continue) | 4 | 3 key or app rejected, 2 wrong argument or file, 5 network |
Last updated