In this Kotlin example, the app listens to new build events and fetches data
- Build streaming
- Retrieving build events for a build
To run this sample:
- Replace
id
,password
,baseUrl
values inFetchBuildData.kt
with your Gradle Enterprise hostname and credentials. - Open a terminal window.
- Run
./gradlew run
from the command line.
Sample output:
> Task :run
Start listening to build events
onOpen Response{protocol=http/1.1, code=200, message=OK, url=https://enterprise-training.gradle.com/build-export/v1/builds/since/now?stream}