IdeaRunner
IntelliJ IDEA Project build runner allows you to build a project created in IntelliJ IDEA
Example. Adds a simple IDEA Project build step with project JDK setup and aftifact build.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
ideaRunner {
name = "My IDEA Step"
pathToProject = ""
jdk {
name = "13"
path = "%env.JDK_13_0%"
patterns("jre/lib/*.jar", "jre/lib/ext/jfxrt.jar")
extAnnotationPatterns("%teamcity.tool.idea%/lib/jdkAnnotations.jar")
}
artifactsToBuild = "aftifact1"
}
Content copied to clipboard }
}
Example. Adds an IDEA Project build step in the checkount directory root with specified project JDK settings, custom JVM settings, run configurations, artifacts build, and IDEA-base coverage.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
ideaRunner {
name = "My IDEA Step"
pathToProject = ""
jdk {
name = "13"
path = "%env.JDK_13_0%"
patterns("jre/lib/*.jar", "jre/lib/ext/jfxrt.jar")
extAnnotationPatterns("%teamcity.tool.idea%/lib/jdkAnnotations.jar")
}
jvmArgs = "-Xmx256m"
targetJdkHome = "%env.JDK_11_0%"
runConfigurations = """
run_configuration1
run_configuration2
""".trimIndent()
incrementalMake = true
makeRequiredModulesOnly = true
artifactsToBuild = """
aftifact1
aftifact2
""".trimIndent()
coverageEngine = idea {
includeClasses = "org.sample.*"
excludeClasses = "org.sample.test.*"
}
reduceTestFeedback = IdeaRunner.TestPolicy.RECENTLY_FAILED_AND_MODIFIED
}
Content copied to clipboard }
}
Constructors
Types
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.
IntelliJ IDEA coverage runner
JaCoCo coverage runner
Validates this object and reports found errors to the provided consumer
Properties
A path to a Build Working Directory, if it differs from the Build Checkout Directory