Skip to content

Commit de594c4

Browse files
committed
chore: Avoid unnecessary slot validation, for non-run tasks.
1 parent 5ba5367 commit de594c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

buildSrc/src/main/kotlin/dd-trace-java.ci-jobs.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ if (project != rootProject) {
1717
allprojects {
1818
// Enable tests only on the selected slot (if -Pslot=n/t is provided)
1919
tasks.withType<Test>().configureEach {
20-
enabled = project.isInSelectedSlot.get()
20+
onlyIf("Project is in selected slot") {
21+
project.isInSelectedSlot.get()
22+
}
2123
}
2224
}
2325

0 commit comments

Comments
 (0)