Skip to content

Commit 4f0dffb

Browse files
authored
Tune some parameters to unlock execution on macOS agents (#239)
Currently, tasks are not scheduled to macOS agents as agents either don't have JDK16 installed, or are Apple Sillicon-based. This change overwrites corresponding tunables to unlock execution on macOS agents.
1 parent f95468e commit 4f0dffb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.teamcity/utils.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const val bintrayToken = "%env.BINTRAY_API_KEY%"
1414
const val libraryStagingRepoDescription = "kotlinx-benchmark"
1515

1616
val platforms = Platform.values()
17-
const val jdk = "JDK_18_x64"
17+
const val jdk = "JDK_18"
1818

1919
enum class Platform {
2020
Windows, Linux, MacOS;
@@ -70,6 +70,7 @@ fun Project.buildType(name: String, platform: Platform, configure: BuildType.()
7070
params {
7171
// This parameter is needed for macOS agent to be compatible
7272
if (platform == Platform.MacOS) param("env.JDK_17", "")
73+
if (platform == Platform.MacOS) param("env.JDK_16", "")
7374
}
7475

7576
commonConfigure()
@@ -119,4 +120,4 @@ fun BuildType.dependsOnSnapshot(build: IdOwner, onFailure: FailureAction = Failu
119120
onDependencyCancel = FailureAction.CANCEL
120121
}
121122
}
122-
}
123+
}

0 commit comments

Comments
 (0)