Example Gradle Pipeline

Updated 2 years ago by Admin

Gradle Example

This guide covers configuring continuous integration pipelines for Gradle projects. If you’re new to Drone please read our Tutorial and build configuration guides first.

Build and Test

In the below example we demonstrate a pipeline that executes gradle assemble and gradle check commands. These commands are executed inside a Docker container, downloaded at runtime from DockerHub.

kind: pipeline
type: kubernetes
name: default

- name: test
image: gradle:jdk10
- gradle assemble
- gradle check

Please note that you can use any Docker image in your pipeline from any Docker registry. You can use the official gradle images, or you can bring your own.

How did we do?