Gradle
Run Gradle builds inside Jenkins with version pinning, report ingestion, and parameter mapping — integrated natively with Opsera's pipeline builder.
Prerequisites
Jenkins tool registered in Opsera Tool Registry
Jenkins Job created with job type set toGradle
SCM repository with Gradle project registered
Pipeline setup
Create build step
Tool = Jenkins, Step Type = Build. In Step Settings choose the Jenkins Tool and the Gradle job
Configure source and commands
Select SCM tool, Repository, and Branch. Enter single or multiple build commands. Define Input and Output Parameters as needed.
Add report ingestion (optional)
Enable the Report Details toggle to ingest test report files directly — eliminates the need to specify report paths in command-line scripts.
Select Gradle version
Use the Dependency dropdown to pin a Gradle version: 6.9.4, 7.5.1, 7.6.4, or 8.6.
Points to remember
Always pin a specific Gradle version via the Dependency dropdown — using an unpinned version can cause unexpected build behavior when Gradle releases updates.
Input parameters provide initial data to start build execution; output parameters represent artifacts and results produced by the pipeline stages.
The Report Details toggle eliminates the need to hardcode report file paths in your command-line scripts, making pipelines more portable.
FAQs
Last updated

