1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/resources/metadata/gradleExecuteBuild.yaml

46 lines
1.2 KiB
YAML
Raw Normal View History

metadata:
name: gradleExecuteBuild
description: This step runs a gradle build command with parameters provided to the step.
longDescription: This step runs a gradle build command with parameters provided to the step.
spec:
inputs:
params:
- name: path
aliases:
- name: buildGradlePath
deprecated: false
type: string
description: Path to the folder with build.gradle (or build.gradle.kts) file which should be executed.
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: false
- name: task
type: string
description: Gradle task that should be executed.
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: false
default: build
- name: createBOM
type: bool
description: Creates the bill of materials (BOM) using CycloneDX plugin.
scope:
- GENERAL
- STEPS
- STAGES
- PARAMETERS
outputs:
resources:
- name: reports
type: reports
params:
- filePattern: "**/bom.xml"
type: sbom
containers:
- name: gradle
image: gradle:6-jdk11-alpine