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.
2022-02-01 21:32:05 +02:00
### build with depedencies from a private repository
2022-02-02 23:37:48 +02:00
1 . For maven related settings refer [maven build dependencies](./mavenBuild.md#build-with-depedencies-from-a-private-repository)
2 . For NPM related settings refer [NPM build dependencies](./npmExecuteScripts.md#build-with-depedencies-from-a-private-repository)
2020-02-25 15:33:34 +02:00
spec :
inputs :
params :
- 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 :
2021-09-23 15:33:30 +02:00
- name : mtarGroup
type : string
description : "The group to which the mtar artifact will be uploaded. Required when publish is True."
scope :
- PARAMETERS
- STAGES
- STEPS
mandatory : false
default :
- name : version
aliases :
- name : artifactVersion
type : string
description : Version of the mtar artifact
scope :
- PARAMETERS
- STAGES
- STEPS
resourceRef :
- name : commonPipelineEnvironment
param : artifactVersion
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
2021-10-20 16:03:16 +02:00
- name : jobs
type : int
description : "Configures the number of Make jobs that can run simultaneously. Maximum value allowed is 8"
scope :
- PARAMETERS
- STAGES
- STEPS
mandatory : false
default :
aliases :
- name : jobs
2020-02-25 15:33:34 +02:00
- name : platform
type : string
2021-05-19 08:45:38 +02:00
description : "The target platform to which the mtar can be deployed."
2020-02-25 15:33:34 +02:00
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 :
2021-06-14 16:06:47 +02:00
- name : source
type : string
description : "The path to the MTA project."
scope :
- PARAMETERS
- STAGES
- STEPS
mandatory : false
default : "./"
- name : target
type : string
description : "The folder for the generated `MTAR` file. If the parameter has been provided, the `MTAR` file is saved in the root of the folder provided by the argument."
scope :
- PARAMETERS
- STAGES
- STEPS
mandatory : false
default : "./"
2020-02-25 15:33:34 +02:00
- 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
2020-09-24 07:41:06 +02:00
description : "If enabled, for npm packages this step will install all dependencies including dev dependencies. For maven it will install all artifacts to the local maven repository. Note: This happens _after_ mta build was done. The default mta build tool does not install dev-dependencies as part of the process. If you require dev-dependencies for building the mta, you will need to use a [custom builder](https://sap.github.io/cloud-mta-build-tool/configuration/#configuring-the-custom-builder)"
2020-06-22 10:39:52 +02:00
scope :
- GENERAL
- STEPS
- STAGES
- PARAMETERS
2021-09-23 15:33:30 +02:00
- name : mtaDeploymentRepositoryPassword
type : string
description : Password for the alternative deployment repository to which mtar artifacts will be publised
scope :
- GENERAL
- PARAMETERS
- STAGES
- STEPS
secret : true
resourceRef :
2022-03-17 09:01:00 +02:00
- name : commonPipelineEnvironment
param : custom/mavenRepositoryPassword
2021-09-23 15:33:30 +02:00
- name : commonPipelineEnvironment
param : custom/repositoryPassword
- name : mtaDeploymentRepositoryPasswordId
type : secret
- type : vaultSecretFile
name : mtaDeploymentRepositoryPasswordFileVaultSecretName
default : mta-deployment-repository-passowrd
- name : mtaDeploymentRepositoryUser
type : string
description : User for the alternative deployment repository to which which mtar artifacts will be publised
scope :
- GENERAL
- PARAMETERS
- STAGES
- STEPS
resourceRef :
2022-03-17 09:01:00 +02:00
- name : commonPipelineEnvironment
param : custom/mavenRepositoryUsername
2021-09-23 15:33:30 +02:00
- name : commonPipelineEnvironment
param : custom/repositoryUsername
- name : mtaDeploymentRepositoryUrl
type : string
description : Url for the alternative deployment repository to which mtar artifacts will be publised
scope :
- GENERAL
- PARAMETERS
- STAGES
- STEPS
resourceRef :
2022-03-17 09:01:00 +02:00
- name : commonPipelineEnvironment
param : custom/mavenRepositoryURL
2021-09-23 15:33:30 +02:00
- name : commonPipelineEnvironment
param : custom/repositoryUrl
- name : publish
type : bool
description : pushed mtar artifact to altDeploymentRepositoryUrl/altDeploymentRepositoryID when set to true
scope :
- STEPS
- STAGES
- PARAMETERS
default : false
aliases :
- name : mta/publish
- name : profiles
type : "[]string"
description : Defines list of maven build profiles to be used. profiles will overwrite existing values in the global settings xml at $M2_HOME/conf/settings.xml
scope :
- PARAMETERS
- GENERAL
- STAGES
- STEPS
2021-11-16 16:02:57 +02:00
- name : buildSettingsInfo
type : string
description : build settings info is typically filled by the step automatically to create information about the build settings that were used during the mta build . This information is typically used for compliance related processes.
scope :
- STEPS
- STAGES
- PARAMETERS
resourceRef :
- name : commonPipelineEnvironment
param : custom/buildSettingsInfo
2020-02-25 15:33:34 +02:00
outputs :
resources :
- name : commonPipelineEnvironment
type : piperEnvironment
params :
- name : mtarFilePath
2021-12-14 15:43:02 +02:00
- name : custom/mtaBuildToolDesc
2021-09-23 15:33:30 +02:00
- name : custom/mtarPublishedUrl
2021-11-16 16:02:57 +02:00
- name : custom/buildSettingsInfo
2022-01-24 15:50:52 +02:00
- name : reports
type : reports
params :
- filePattern : "**/TEST-*.xml"
type : junit
- filePattern : "**/cobertura-coverage.xml"
type : cobertura-coverage
- filePattern : "**/jacoco.xml"
type : jacoco-coverage
2020-02-25 15:33:34 +02:00
containers :
2021-11-15 15:04:16 +02:00
- image : devxci/mbtci-java11-node14