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

86 lines
2.6 KiB
YAML
Raw Normal View History

2020-02-28 14:09:46 +02:00
metadata:
2020-03-13 14:32:37 +02:00
name: mavenBuild
aliases:
- name: mavenExecute
deprecated: false
2020-03-13 14:32:37 +02:00
description: This step will install the maven project into the local maven repository.
2020-02-28 14:09:46 +02:00
longDescription: |
2020-03-13 14:32:37 +02:00
This step will install the maven project into the local maven repository.
It will also prepare jacoco to record the code coverage and
supports ci friendly versioning by flattening the pom before installing.
2020-02-28 14:09:46 +02:00
spec:
inputs:
params:
- name: pomPath
type: string
2020-03-13 14:32:37 +02:00
description: Path to the pom file which should be installed including all children.
2020-02-28 14:09:46 +02:00
scope:
- PARAMETERS
- STEPS
mandatory: false
2020-03-13 14:32:37 +02:00
default: pom.xml
- name: flatten
type: bool
description: Defines if the pom files should be flattened to support ci friendly maven versioning.
scope:
- PARAMETERS
default: true
- name: verify
type: bool
description: Instead of installing the artifact only the verify lifecycle phase is executed.
scope:
- PARAMETERS
default: false
2020-03-17 13:09:08 +02:00
# Global maven settings, should be added to all maven steps
2020-02-28 14:09:46 +02:00
- name: projectSettingsFile
type: string
description: Path to the mvn settings file that should be used as project settings file.
scope:
2020-03-17 13:09:08 +02:00
- GENERAL
2020-02-28 14:09:46 +02:00
- STEPS
2020-03-17 13:09:08 +02:00
- STAGES
- PARAMETERS
2020-02-28 14:09:46 +02:00
mandatory: false
2020-03-17 13:09:08 +02:00
aliases:
- name: maven/projectSettingsFile
2020-02-28 14:09:46 +02:00
- name: globalSettingsFile
type: string
description: Path to the mvn settings file that should be used as global settings file.
scope:
2020-03-17 13:09:08 +02:00
- GENERAL
2020-02-28 14:09:46 +02:00
- STEPS
2020-03-17 13:09:08 +02:00
- STAGES
- PARAMETERS
2020-02-28 14:09:46 +02:00
mandatory: false
2020-03-17 13:09:08 +02:00
aliases:
- name: maven/globalSettingsFile
2020-02-28 14:09:46 +02:00
- name: m2Path
type: string
description: Path to the location of the local repository that should be used.
scope:
2020-03-17 13:09:08 +02:00
- GENERAL
2020-02-28 14:09:46 +02:00
- STEPS
2020-03-17 13:09:08 +02:00
- STAGES
- PARAMETERS
2020-02-28 14:09:46 +02:00
mandatory: false
2020-03-17 13:09:08 +02:00
aliases:
- name: maven/m2Path
2020-02-28 14:09:46 +02:00
- name: logSuccessfulMavenTransfers
type: bool
description: Configures maven to log successful downloads. This is set to `false` by default to reduce the noise in build logs.
scope:
2020-03-17 13:09:08 +02:00
- GENERAL
- STEPS
- STAGES
2020-02-28 14:09:46 +02:00
- PARAMETERS
default: false
mandatory: false
2020-03-17 13:09:08 +02:00
aliases:
- name: maven/logSuccessfulMavenTransfers
containers:
- name: mvn
image: maven:3.6-jdk-8
imagePullPolicy: Never