-
Notifications
You must be signed in to change notification settings - Fork 2
Unreal Engine
ueDir
: The root directory of Unreal Engine.
engineMajorVersion
: The major version of Unreal Engine used for the project.
platform
(optional): The platform you want to build the project for. Win64
by default.
configuration
(optional): The configuration to build the project in. Shipping
by default.
unreal.init('C:/Program Files/Epic Games/UE_4.25');
unreal.init('C:/Program Files/Epic Games/UE_4.25', '4', 'Win64', 'Shipping');
Build a project.
projectDir
: The directory the project is in.
projectName
: The name of the project file (without .uproject
).
logFile
(optional): The file to log build output to. Defaults to ${env.WORKSPACE}/logs/UnrealBuildLog-${env.BUILD_NUMBER}.log
.
platform
(optional): The target platform to build this project for. If left empty, the platform specified in init
is used (default: Win64
).
configuration
(optional): The target configuration to build this project in. If left empty, the target specified in init
is used (default: Development
).
unreal.build("${env.WORKSPACE}/Path/To/Project", 'ExampleProject');
unreal.build("${env.WORKSPACE}/Path/To/Project", 'ExampleProject', '', 'Win32', 'Shipping');
Packages a project.
projectDir
: The directory the project is in.
projectName
: The name of the project file (without .uproject
).
outputDirectory
: The folder to output the packaged build in.
logFile
(optional): The file to log build output to. Defaults to ${env.WORKSPACE}/logs/UnrealBuildLog-${env.BUILD_NUMBER}.log
.
platform
(optional): The target platform to build this project for. If left empty, the platform specified in init
is used.
configuration
(optional): The target configuration to build this project in. If left empty, the target specified in init
is used.
unreal.package("${env.WORKSPACE}/Path/To/Project", 'ExampleProject', "${env.WORKSPACE}/Builds");
unreal.package("${env.WORKSPACE}/Path/To/Project", 'ExampleProject', "${env.WORKSPACE}/Builds", '', 'Win32', 'Shipping');
Run data validation on the project
projectDir
: The directory the project is in.
projectName
: The name of the project file (without .uproject
).
turnUnstableOnFailure
: If true, build is marked as unstable when any of the assets fails validation. Defaults to false.
Run automation tests for a project. If any of the tests fail, the build will be marked as unstable.
Run tests with a specified name or containing a specified string.
projectDir
: The directory the project is in.
projectName
: The name of the project file (without .uproject
).
testNames
: The list of test names to run. Can also be a part of a name.
minimumPriority
(optional): The minimum priority of the tests to run. Options: Low
, Medium
, High
, Critical
.
unreal.runTestsNamed("${env.WORKSPACE}/Path/To/Project", 'ExampleProject', ['Project.TestName', 'Interaction']);
Run tests with a specified name or containing a specified string, with checkpoints in case of a crash.
projectDir
: The directory the project is in.
projectName
: The name of the project file (without .uproject
).
testNames
: The list of test names to run. Can also be a part of a name.
minimumPriority
(optional): The minimum priority of the tests to run. Options: Low
, Medium
, High
, Critical
.
unreal.runTestsContaining("${env.WORKSPACE}/Path/To/Project", 'ExampleProject', ['PlayerInteraction']);
projectDir
: The directory the project is in.
projectName
: The name of the project file (without .uproject
).
filter
: The filter to use. Options: Engine
, Smoke
, Stress
, Perf
, Product
.
minimumPriority
(optional): The minimum priority of the tests to run. Options: Low
, Medium
, High
, Critical
.
unreal.runTestsFiltered("${env.WORKSPACE}/Path/To/Project", 'ExampleProject', 'Smoke');
projectDir
: The directory the project is in.
projectName
: The name of the project file (without .uproject
).
minimumPriority
(optional): The minimum priority of the tests to run. Options: Low
, Medium
, High
, Critical
.
unreal.runAllTests("${env.WORKSPACE}/Path/To/Project", 'ExampleProject');
- Source Control
- Building and Testing
- Messaging
- Shipping
- Miscellaneous
- Example Pipelines