1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-03-03 15:02:35 +02:00
sap-jenkins-library/resources/metadata/gradleExecuteBuild.yaml
Siarhei Pazdniakou db5360fb89
feat(gradleExecuteBuild): BOM creation. Integration tests (#3603)
* Implemented bom creation

* Made small fixes. Added integration tests

* go generate

* minor fixes

* fix tests

* Added unit tests

* minor fixes

* use fileutils

* integration tests optimization

* change integraton tests timeout to 25m

* Fix Inclusive Language warnings

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2022-03-21 10:17:03 +01:00

46 lines
1.2 KiB
YAML

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