Performing a Cloud Build
Use packager commands to download the specified application assets and reuse libraries from the SAP Fiori front-end server to a local target directory, create a project ZIP on the SAP Cloud Platform mobile service for SAP Fiori cloud build service and upload the Web assets, plugins, and other application metadata. Then start the cloud build service to package the application assets with the Cordova plugins and generate signed or unsigned application binary files for iOS (.ipa) and Android (.apk).
Context
Before building your application on the SAP Cloud Platform mobile service for SAP Fiori cloud build service, make sure your environment has been properly configured:
- Set up your build environment. For more information, see Requirements and Prerequisites.
-
Define your package properties with the appConfig.js file. For more information, see the Defining Package Properties in appConfig.js.
-
Create a local target directory and download the application assets and related components from the SAP Fiori front-end server, using the downloadfromfes command. For more information, see the Downloading from the SAP Fiori Front-End Server.
The typical command sequence for packaging is:
- downloadfromfes – downloads the application assets and related components from the SAP Fiori front-end server. For more information, see Downloading from the SAP Fiori Front-End Server
- createpackage – creates the package
- uploadpackage – uploads the package to the SAP Cloud Platform mobile service for SAP Fiori cloud build service
- startbuild – initiates the build on the SAP Cloud Platform mobile service for SAP Fiori cloud build service
- status – checks the build status
- doall – automatically runs the SAP Cloud Platform mobile service for SAP Fiori cloud build process. It completes the following commands downloadfromfes,createpackage, uploadpackage, startbuild.
- signingids – enables the SAP Cloud Platform mobile service for SAP Fiori cloud build service to sign the apps
- downloadapp – downloads the application binary to a local directory
- info – collects basic information on the SAP Cloud Platform mobile service for SAP Fiori cloud build service package.
The packager uses the following syntax:
node <path to SDK directory>/apps/packager/bin/packager [options] [commands] ...
To display the full list of options and defaults, use:
node <path to SDK directory>/apps/packager/bin/packager --help