We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de594c4 commit 474b8a0Copy full SHA for 474b8a0
buildSrc/src/main/kotlin/datadog/gradle/plugin/ci/CIJobsExtensions.kt
@@ -22,8 +22,13 @@ val Project.isInSelectedSlot: Provider<Boolean>
22
return@map true
23
}
24
25
- val selectedSlot = parts[0].toInt()
26
- val totalSlots = parts[1].toInt()
+ val selectedSlot = parts[0].toIntOrNull()
+ val totalSlots = parts[1].toIntOrNull()
27
+
28
+ if (selectedSlot == null || totalSlots == null || totalSlots <= 0) {
29
+ project.logger.warn("Invalid slot values '{}', expected numeric 'X/Y' with Y > 0. Treating all projects as selected.", slot)
30
+ return@map true
31
+ }
32
33
// Distribution numbers when running on rootProject.allprojects indicates
34
// bucket sizes are reasonably balanced:
0 commit comments