github.com/xgoffin/jenkins-library@v1.154.0/documentation/docs/steps/mtaBuild.md (about)

     1  # ${docGenStepName}
     2  
     3  ## ${docGenDescription}
     4  
     5  ## Prerequisites
     6  
     7  While using a custom docker file, ensure that the following tools are installed:
     8  
     9  * **multitarget application archive builder 1.0.6 or compatible version** - can be downloaded from [SAP Development Tools](https://tools.hana.ondemand.com/#cloud).
    10  * **Java 8 or compatible version** - necessary to run the *multitarget application archive builder* itself and to build Java modules.
    11  * **NodeJS installed** - the multitarget application archive builder uses `npm` to download node module dependencies such as `grunt`.
    12  
    13  ## ${docGenParameters}
    14  
    15  ## ${docGenConfiguration}
    16  
    17  ## ${docJenkinsPluginDependencies}
    18  
    19  ## Side effects
    20  
    21  1. The file name of the resulting archive is written to the `commonPipelineEnvironment` with variable name `mtarFileName`.
    22  
    23  ## Exceptions
    24  
    25  * `AbortException`:
    26    * If there is an invalid `buildTarget`.
    27    * If there is no key `ID` inside the `mta.yaml` file.
    28  
    29  ## Example
    30  
    31  ```groovy
    32  dir('/path/to/FioriApp'){
    33    mtaBuild script:this, buildTarget: 'NEO'
    34  }
    35  def mtarFilePath = commonPipelineEnvironment.getMtarFilePath()
    36  ```