2020-02-25 15:33:34 +02:00
metadata :
name : mtaBuild
description : Performs an mta build
longDescription : |
Executes the SAP Multitarget Application Archive Builder to create an mtar archive of the application.
spec :
inputs :
params :
- name : buildTarget
type : string
description : "mtaBuildTool 'classic' only: The target platform to which the mtar can be deployed. Valid values: 'CF', 'NEO', 'XSA'."
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-02-25 15:33:34 +02:00
mandatory : false
2020-05-19 08:51:18 +02:00
default : NEO
2020-04-27 15:16:01 +02:00
possibleValues :
- CF
- NEO
- XSA
2020-02-25 15:33:34 +02:00
- name : mtaBuildTool
type : string
description : "Tool to use when building the MTA. Valid values: 'classic', 'cloudMbt'."
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-02-25 15:33:34 +02:00
mandatory : false
default : cloudMbt
2020-04-27 15:16:01 +02:00
possibleValues :
- cloudMbt
- classic
2020-02-25 15:33:34 +02:00
- name : mtarName
type : string
description : "The name of the generated mtar file including its extension."
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-02-25 15:33:34 +02:00
mandatory : false
default :
- name : mtaJarLocation
type : string
description : "mtaBuildTool 'classic' only: The location of the SAP Multitarget Application Archive Builder jar file, including file name and extension. If you run on Docker, this must match the location of the jar file in the container as well."
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-02-25 15:33:34 +02:00
mandatory : false
2020-05-19 08:51:18 +02:00
default : /opt/sap/mta/lib/mta.jar
2020-02-25 15:33:34 +02:00
- name : extensions
type : string
description : "The path to the extension descriptor file."
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-02-25 15:33:34 +02:00
mandatory : false
default :
2020-05-19 17:05:11 +02:00
aliases :
- name : extension
2020-02-25 15:33:34 +02:00
- name : platform
type : string
description : "mtaBuildTool 'cloudMbt' only: The target platform to which the mtar can be deployed."
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-02-25 15:33:34 +02:00
mandatory : false
2020-05-19 08:51:18 +02:00
default : CF
2020-04-27 15:16:01 +02:00
possibleValues :
- CF
- NEO
- XSA
2020-02-25 15:33:34 +02:00
- name : applicationName
type : string
description : "The name of the application which is being built. If the parameter has been provided and no `mta.yaml` exists, the `mta.yaml` will be automatically generated using this parameter and the information (`name` and `version`) from 'package.json` before the actual build starts."
scope :
2020-08-31 16:10:28 +02:00
- PARAMETERS
- STAGES
- STEPS
2020-02-25 15:33:34 +02:00
mandatory : false
default :
- name : defaultNpmRegistry
type : string
description : "Url to the npm registry that should be used for installing npm dependencies."
scope :
2020-07-29 15:39:41 +02:00
- GENERAL
2020-05-15 14:20:37 +02:00
- PARAMETERS
- STAGES
- STEPS
mandatory : false
2020-07-29 15:39:41 +02:00
aliases :
- name : npm/defaultNpmRegistry
2020-05-15 14:20:37 +02:00
default :
2020-02-25 15:33:34 +02:00
- name : projectSettingsFile
type : string
description : "Path or url to the mvn settings file that should be used as project settings file."
scope :
2020-08-31 16:10:28 +02:00
- GENERAL
- PARAMETERS
- STAGES
- STEPS
2020-02-25 15:33:34 +02:00
mandatory : false
2020-07-29 15:39:41 +02:00
aliases :
- name : maven/projectSettingsFile
2020-02-25 15:33:34 +02:00
- name : globalSettingsFile
type : string
description : "Path or url to the mvn settings file that should be used as global settings file"
scope :
2020-08-31 16:10:28 +02:00
- GENERAL
- PARAMETERS
- STAGES
- STEPS
2020-02-25 15:33:34 +02:00
mandatory : false
2020-07-29 15:39:41 +02:00
aliases :
- name : maven/globalSettingsFile
2020-06-15 12:46:54 +02:00
- 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
2020-06-22 10:39:52 +02:00
- name : installArtifacts
type : bool
description : If enabled, for npm packages this step will install all depedencies including dev dependencies. For maven it will install all artifacts to the local maven repository.
scope :
- GENERAL
- STEPS
- STAGES
- PARAMETERS
2020-02-25 15:33:34 +02:00
outputs :
resources :
- name : commonPipelineEnvironment
type : piperEnvironment
params :
- name : mtarFilePath
fields :
- name : mtarFilePath
containers :
2020-06-30 12:23:17 +02:00
- image : devxci/mbtci:1.0.14.1
2020-05-22 09:48:11 +02:00
imagePullPolicy : Always
2020-05-19 08:51:18 +02:00
conditions :
- conditionRef : strings-equal
params :
- name : mtaBuildTool
2020-05-22 09:48:11 +02:00
value : cloudMbt
2020-05-29 13:51:33 +02:00
- image : ppiper/mta-archive-builder:v1
2020-05-19 08:51:18 +02:00
conditions :
- conditionRef : strings-equal
params :
- name : mtaBuildTool
2020-05-22 09:48:11 +02:00
value : classic