withJenkins

fun withJenkins(suite: JvmTestSuite)

Deprecated

Set jenkins.useTestHarness = true on the suite directly. Will be removed in 0.13.0.

Replace with

import com.mkobit.jenkins.pipelines.jenkins
jenkins.useTestHarness = true

Opts suite into full Jenkins test-harness wiring.

Prefer setting jenkins.useTestHarness = true directly on the suite inside its register<JvmTestSuite> block — it is idempotent and does not require a reference to sharedLibrary:

register<JvmTestSuite>("integrationTestKotest") {
jenkins.useTestHarness = true
}