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

106 lines
2.9 KiB
YAML
Raw Normal View History

metadata:
name: nexusUpload
aliases:
- name: mavenExecute
deprecated: false
description: Upload artifacts to Nexus
longDescription: |
Upload build artifacts to a Nexus Repository Manager
spec:
inputs:
secrets:
- name: nexusCredentialsId
description: The technical username/password credential for accessing the nexus endpoint.
type: jenkins
aliases:
- name: nexus/credentialsId
params:
- name: version
type: string
description: The Nexus Repository Manager version. Currently supported are 'nexus2' and 'nexus3'.
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: false
default: nexus3
aliases:
- name: nexus/version
- name: url
type: string
description: URL of the nexus. The scheme part of the URL will not be considered, because only http is supported.
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: true
aliases:
- name: nexus/url
- name: repository
type: string
description: Name of the nexus repository.
scope:
- PARAMETERS
- STAGES
- STEPS
mandatory: true
aliases:
- name: nexus/repository
- name: groupId
type: string
description: Group ID of the artifacts. Only used in MTA projects, ignored for Maven.
scope:
- PARAMETERS
- STAGES
- STEPS
aliases:
- name: nexus/groupId
- name: artifactId
type: string
description: The artifact ID used for both the .mtar and mta.yaml files deployed for MTA projects, ignored for Maven.
scope:
- PARAMETERS
- name: globalSettingsFile
type: string
description: Path to the mvn settings file that should be used as global settings file.
scope:
- GENERAL
- PARAMETERS
- STAGES
- STEPS
aliases:
- name: maven/globalSettingsFile
- name: m2Path
type: string
description: The path to the local .m2 directory, only used for Maven projects.
scope:
- GENERAL
- PARAMETERS
- STAGES
- STEPS
aliases:
- name: maven/m2Path
- name: additionalClassifiers
type: string
description: List of additional classifiers that should be deployed to nexus. Each item is a map of a type and a classifier name.
scope:
- PARAMETERS
- STAGES
- STEPS
aliases:
- name: nexus/additionalClassifiers
- name: user
type: string
description: User
scope:
- PARAMETERS
- name: password
type: string
description: Password
scope:
- PARAMETERS
containers:
- name: mvn
image: maven:3.6-jdk-8
imagePullPolicy: Never