Build and Deploy SAPUI5 or SAP Fiori Applications on SAP Cloud Platform with Jenkins¶
Build an application based on SAPUI5 or SAP Fiori with Jenkins and deploy the build result into an SAP Cloud Platform account in the Neo environment.
- You have installed the Java Runtime Environment 8.
- You have installed Jenkins 2.60.3 or higher.
- You have set up Project “Piper”. See README.
- You have installed the Multi-Target Application (MTA) Archive Builder 1.0.6 or newer. See SAP Development Tools.
- You have installed Node.js including node and npm. See Node.js.
- You have installed the SAP Cloud Platform Neo Environment SDK. See SAP Development Tools.
This scenario requires additional files in your project and in the execution environment on your Jenkins instance.
On the project level, provide and adjust the following template:
||This file contains a reference to the SAP NPM registry (
||This file controls the behavior of the MTA toolset.||Place the
||This file lists the required development dependencies for the build.||Add the content of the
||This file controls the grunt build. By default the tasks
This scenario combines various different steps to create a complete pipeline.
In this scenario, we want to show how to build an application based on SAPUI5 or SAP Fiori by using the multi-target application (MTA) concept and how to deploy the build result into an SAP Cloud Platform account in the Neo environment. This document comprises the mtaBuild and the neoDeploy steps.
Screenshot: Build and Deploy Process in Jenkins¶
Following the convention for pipeline definitions, use a
Jenkinsfile which resides in the root directory of your development sources.
@Library('piper-lib-os') _ fioriOnCloudPlatformPipeline script:this
This is a basic configuration example, which is also located in the sources of the project. The configuration corresponds to the steps wrapped in
steps: mtaBuild: buildTarget: 'NEO' platform: 'neo' neoDeploy: neo: credentialsId: 'NEO_DEPLOY' account: 'your-account-id' host: 'hana.ondemand.com'
Configuration for the MTA Build¶
||The target platform to which the mtar can be deployed. Possible values are:
||The location of the multi-target application archive builder jar file, including file name and extension.|
Configuration for the Deployment to SAP Cloud Platform¶
||The SAP Cloud Platform account to deploy to.|
||The Jenkins credentials that contain the user and password which are used for the deployment on SAP Cloud Platform.|
||The SAP Cloud Platform host to deploy to.|
For the detailed description of the relevant parameters, see: