2019-04-01 11:55:39 +02:00
|
|
|
# ${docGenStepName}
|
2017-07-11 15:12:03 +02:00
|
|
|
|
2019-04-01 11:55:39 +02:00
|
|
|
## ${docGenDescription}
|
2018-11-06 14:50:09 +02:00
|
|
|
|
2019-04-01 11:55:39 +02:00
|
|
|
## Prerequisites
|
2018-03-23 15:18:48 +02:00
|
|
|
|
2019-04-01 11:55:39 +02:00
|
|
|
While using a custom docker file, ensure that the following tools are installed:
|
2018-03-23 15:18:48 +02:00
|
|
|
|
2019-04-01 11:55:39 +02:00
|
|
|
* **SAP MTA Archive Builder 1.0.6 or compatible version** - can be downloaded from [SAP Development Tools](https://tools.hana.ondemand.com/#cloud).
|
|
|
|
* **Java 8 or compatible version** - necessary to run the *MTA Archive Builder* itself and to build Java modules.
|
|
|
|
* **NodeJS installed** - the MTA Builder uses `npm` to download node module dependencies such as `grunt`.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
2019-04-01 11:55:39 +02:00
|
|
|
## ${docGenParameters}
|
2018-11-06 14:50:09 +02:00
|
|
|
|
2019-04-01 11:55:39 +02:00
|
|
|
## ${docGenConfiguration}
|
2018-03-06 14:43:53 +02:00
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
## Side effects
|
2018-11-06 14:50:09 +02:00
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
1. The file name of the resulting archive is written to the `commonPipelineEnvironment` with variable name `mtarFileName`.
|
|
|
|
|
|
|
|
## Exceptions
|
2018-11-06 14:50:09 +02:00
|
|
|
|
2017-11-24 16:59:34 +02:00
|
|
|
* `AbortException`:
|
2018-11-06 14:50:09 +02:00
|
|
|
* If there is an invalid `buildTarget`.
|
|
|
|
* If there is no key `ID` inside the `mta.yaml` file.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
## Example
|
2018-11-06 14:50:09 +02:00
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
```groovy
|
|
|
|
def mtarFileName
|
|
|
|
dir('/path/to/FioriApp'){
|
|
|
|
mtarFileName = mtaBuild script:this, buildTarget: 'NEO'
|
|
|
|
}
|
|
|
|
```
|