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/mavenExecute.yaml

92 lines
2.6 KiB
YAML
Raw Normal View History

2020-02-28 14:09:46 +02:00
metadata:
name: mavenExecute
description: This step allows to run maven commands
longDescription: |
This step runs a maven command based on the parameters provided to the step.
spec:
inputs:
params:
- name: pomPath
type: string
description: Path to the pom file that should be used.
scope:
- PARAMETERS
- STEPS
mandatory: false
- name: goals
type: "[]string"
description: Maven goals that should be executed.
scope:
- PARAMETERS
mandatory: true
- name: defines
type: "[]string"
description: Additional properties in form of -Dkey=value.
scope:
- PARAMETERS
mandatory: false
- name: flags
type: "[]string"
description: Flags to provide when running mvn.
scope:
- PARAMETERS
- STEPS
mandatory: false
2020-03-17 13:09:08 +02:00
- name: returnStdout
2020-02-28 14:09:46 +02:00
type: bool
2020-03-17 13:09:08 +02:00
description: Returns the output of the maven command for further processing.
2020-02-28 14:09:46 +02:00
scope:
- PARAMETERS
default: false
2020-03-17 13:09:08 +02:00
# Global maven settings, should be added to all maven steps
- name: projectSettingsFile
type: string
description: Path to the mvn settings file that should be used as project settings file.
scope:
- GENERAL
- STEPS
- STAGES
- PARAMETERS
2020-02-28 14:09:46 +02:00
mandatory: false
2020-03-17 13:09:08 +02:00
aliases:
- name: maven/projectSettingsFile
- name: globalSettingsFile
type: string
description: Path to the mvn settings file that should be used as global settings file.
scope:
- GENERAL
- STEPS
- STAGES
- PARAMETERS
mandatory: false
aliases:
- name: maven/globalSettingsFile
- name: m2Path
type: string
description: Path to the location of the local repository that should be used.
scope:
- GENERAL
- STEPS
- STAGES
- PARAMETERS
mandatory: false
aliases:
- name: maven/m2Path
- name: logSuccessfulMavenTransfers
2020-02-28 14:09:46 +02:00
type: bool
2020-03-17 13:09:08 +02:00
description: Configures maven to log successful downloads. This is set to `false` by default to reduce the noise in build logs.
2020-02-28 14:09:46 +02:00
scope:
2020-03-17 13:09:08 +02:00
- GENERAL
- STEPS
- STAGES
2020-02-28 14:09:46 +02:00
- PARAMETERS
default: false
2020-03-17 13:09:08 +02:00
mandatory: false
aliases:
- name: maven/logSuccessfulMavenTransfers
containers:
- name: mvn
image: maven:3.6-jdk-8
imagePullPolicy: Never