You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-12-01 23:02:43 +02:00
Slight improvements on various md files. Deletion of method-based commonPipelineEnvironment documentation as it is not used.
2.1 KiB
2.1 KiB
mtaBuild
Description
Executes the SAP MTA Archive Builder to create an mtar archive of the application.
Prerequisites
- SAP MTA Archive Builder - available for download on the SAP Marketplace.
- Java 8 or higher - necessary to run the
mta.jarfile. - NodeJS installed - the MTA Builder uses
npmto download node module dependencies such asgrunt.
Parameters
| parameter | mandatory | default | possible values |
|---|---|---|---|
script |
yes | ||
buildTarget |
yes | 'CF', 'NEO', 'XSA' | |
mtaJarLocation |
no |
script- The common script environment of the Jenkinsfile running. Typically the reference to the script calling the pipeline step is provided with thethisparameter, as inscript: this. This allows the function to access thecommonPipelineEnvironmentfor retrieving, for example, configuration parameters.buildTarget- The target platform to which the mtar can be deployed.mtaJarLocation- The path of themta.jarfile. If no parameter is provided, the path is retrieved from the Jenkins environment variables usingenv.MTA_JAR_LOCATION. If the Jenkins environment variable is not set it is assumed thatmta.jaris located in the current working directory.
Return value
The file name of the resulting archive is returned with this step. The file name is extracted from the key ID defined in mta.yaml.
Side effects
- The file name of the resulting archive is written to the
commonPipelineEnvironmentwith variable namemtarFileName.
Exceptions
AbortException:- If there is an invalid
buildTarget. - If there is no key
IDinside themta.yamlfile.
- If there is an invalid
Example
def mtarFileName
dir('/path/to/FioriApp'){
mtarFileName = mtaBuild script:this, buildTarget: 'NEO'
}