mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
190a4708a2
move mtaBuild step from groovy to go. Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
112 lines
3.4 KiB
YAML
112 lines
3.4 KiB
YAML
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:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default:
|
|
- name: mtaBuildTool
|
|
type: string
|
|
description: "Tool to use when building the MTA. Valid values: 'classic', 'cloudMbt'."
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default: cloudMbt
|
|
- name: mtarName
|
|
type: string
|
|
description: "The name of the generated mtar file including its extension."
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
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:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default:
|
|
- name: extensions
|
|
type: string
|
|
description: "The path to the extension descriptor file."
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default:
|
|
- name: platform
|
|
type: string
|
|
description: "mtaBuildTool 'cloudMbt' only: The target platform to which the mtar can be deployed."
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default:
|
|
- 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:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default:
|
|
- name: defaultNpmRegistry
|
|
type: string
|
|
description: "Url to the npm registry that should be used for installing npm dependencies."
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default:
|
|
- name: projectSettingsFile
|
|
type: string
|
|
description: "Path or url to the mvn settings file that should be used as project settings file."
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default:
|
|
- name: globalSettingsFile
|
|
type: string
|
|
description: "Path or url to the mvn settings file that should be used as global settings file"
|
|
scope:
|
|
- PARAMETERS
|
|
- STAGES
|
|
- STEPS
|
|
mandatory: false
|
|
default:
|
|
|
|
outputs:
|
|
resources:
|
|
- name: commonPipelineEnvironment
|
|
type: piperEnvironment
|
|
params:
|
|
- name: mtarFilePath
|
|
fields:
|
|
- name: mtarFilePath
|
|
containers:
|
|
- name: mta
|
|
image: devxci/mbtci
|
|
imagePullPolicy: Always
|