Gradle

class Gradle(source)

Plugin to use the Gradle build tool within pipelines.

This plugin automatically configures wrapper caching and test reporting.

Example

gitlabCi {
val build by job {
useGradle()

script {
gradlew.task("build")
}
}
}

Job extensions

  • useGradle: Enables the plugin and preconfigures GitLab to import test reports.

See also

Enable this plugin.

Run a task.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun task(task: String): <Error class: unknown class>

Executes the Gradle task named task.

Link copied to clipboard
fun tasks(vararg tasks: String): <Error class: unknown class>
fun tasks(tasks: Iterable<String>): <Error class: unknown class>

Executes the Gradle tasks named tasks.