more
This commit is contained in:
Vendored
+6
-23
@@ -1,25 +1,19 @@
|
||||
import jetbrains.buildServer.configs.kotlin.*
|
||||
import jetbrains.buildServer.configs.kotlin.buildSteps.powerShell
|
||||
import jetbrains.buildServer.configs.kotlin.buildSteps.script
|
||||
|
||||
version = "2026.1"
|
||||
|
||||
project {
|
||||
|
||||
description = "Unity CI pipeline (Windows + Android + extensible)"
|
||||
description = "Unity CI (Windows + Android + extensible)"
|
||||
|
||||
buildType(UnityBuildCore)
|
||||
buildType(WindowsBuild)
|
||||
buildType(AndroidBuild)
|
||||
|
||||
// Mac/iOS intentionally omitted until you have macOS agents
|
||||
}
|
||||
|
||||
/**
|
||||
* =========================
|
||||
* CORE UNITY BUILD PIPELINE
|
||||
* =========================
|
||||
* This is the only build that actually runs Unity.exe
|
||||
* CORE BUILD (only place Unity runs)
|
||||
*/
|
||||
object UnityBuildCore : BuildType({
|
||||
|
||||
@@ -36,12 +30,13 @@ object UnityBuildCore : BuildType({
|
||||
steps {
|
||||
|
||||
powerShell {
|
||||
name = "Build Unity"
|
||||
name = "Run Unity Build"
|
||||
|
||||
scriptMode = file {
|
||||
path = "ci/Build-Unity.ps1"
|
||||
}
|
||||
|
||||
// SAFE: always passed from dependency configs
|
||||
scriptArgs = "-Target %unity.target%"
|
||||
}
|
||||
}
|
||||
@@ -52,9 +47,7 @@ object UnityBuildCore : BuildType({
|
||||
})
|
||||
|
||||
/**
|
||||
* =========================
|
||||
* WINDOWS ENTRYPOINT
|
||||
* =========================
|
||||
* WINDOWS BUILD
|
||||
*/
|
||||
object WindowsBuild : BuildType({
|
||||
|
||||
@@ -68,10 +61,6 @@ object WindowsBuild : BuildType({
|
||||
root(DslContext.settingsRoot)
|
||||
}
|
||||
|
||||
steps {
|
||||
// no-op (build happens in dependency)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
snapshot(UnityBuildCore) {
|
||||
onDependencyFailure = FailureAction.FAIL_TO_START
|
||||
@@ -84,9 +73,7 @@ object WindowsBuild : BuildType({
|
||||
})
|
||||
|
||||
/**
|
||||
* =========================
|
||||
* ANDROID ENTRYPOINT
|
||||
* =========================
|
||||
* ANDROID BUILD
|
||||
*/
|
||||
object AndroidBuild : BuildType({
|
||||
|
||||
@@ -100,10 +87,6 @@ object AndroidBuild : BuildType({
|
||||
root(DslContext.settingsRoot)
|
||||
}
|
||||
|
||||
steps {
|
||||
// no-op (build happens in dependency)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
snapshot(UnityBuildCore) {
|
||||
onDependencyFailure = FailureAction.FAIL_TO_START
|
||||
|
||||
Reference in New Issue
Block a user