Export a Foundry app
Export a Foundry app
The Volt MX Foundry export is used to export the existing Volt MX Foundry application to your SCM.
The export job keeps track of the application code that is exported in the previous build. If there are no changes from the previous build, the push part of the pipeline is omitted.
You can build the Export job by using the Build with Parameters option. You can access the option by following either of these steps.
- On the right-side of the job row, select the icon that represents Build with Parameters
- Open the drop-down list for the buildFoundryApp job, and then select Build with Parameters
- Open the buildFoundryApp job and click Build with Parameters on the left panel
Note: If you don’t see the option, you might not have ownership permissions to the project. You can verify whether your name is listed in the Folder Owners section of the project. The Primary owner of the project can add users as secondary owners to grant permissions to the builds.
To build the job, you need to configure the build parameters. For more information about the parameters, refer to the following sections.
|SCM_BRANCH||Specifies the branch, release tag, or the commit ID of the repository that contains the source code of the Foundry app.|
|FOUNDRY_CREDENTIALS||Specifies the credentials that App Factory uses to import and publish the app to the Foundry cloud. The Foundry cloud must be specified in the FOUNDRY_APP_CONFIG. For more information, refer to Adding New Cloud Credentials.|
|FOUNDRY_APP_CONFIG||Specifies the configuration that App Factory uses to connect the Iris (client) app to corresponding Foundry (server) app. The configuration includes the hosting type, cloud account, environment name, and the Foundry app name. The build pipeline refers to this parameter for the Foundry Account details to Import and Publish the app. For more information, refer to Adding new Volt MX Foundry App Config.|
|VALIDATE_VERSION||Specifies whether App Factory must validate the app version from the Foundry console with the app version in the SCM. If the two versions do not match, the changes are not committed to the SCM.|
|FOUNDRY_APP_VERSION||Specifies the version of the Foundry app that you want to export. The version must be in the format <major>.<minor>, for example: 1.0 or 999.99. The major version must be between 1 and 999, and the minor version must be between 1 and 99.|
|FOUNDRY_DIR||Specifies the directory in the repository that contains the source code of the Foundry app. For example, if the path to the Foundry source code is path/to/FoundryApp/Apps, the Foundry directory is path/to/FoundryApp. If the source code of your Foundry app is at the root of the SCM, leave this parameter blank.|
|IGNORE_JARS||Specifies whether the dependent JAR files must be ignored while committing the app to the SCM.|
|SERVICE_CONFIG_PATH||Specifies the path in source control to which the service configuration JSON file must be exported and placed. The path must be relative to the root of the repository. This is useful if you have manually configured the back-end endpoints and other settings in the Foundry Console, and you want App Factory to push the configuration to source control. If the path is left blank, App Factory exports the Foundry app, but not the corresponding service configuration. For information about service configurations, refer to Managing Service Profiles. Important: This parameter is only applicable for Foundry Console versions V9SP2 or later. App Factory supports custom locations for the configuration file, but HCL recommends naming the folder |
|AUTHOR_EMAIL||Specifies the email address that is used for the Git client configuration to push changes to the remote repository.|
|COMMIT_AUTHOR||Specifies the author name that is used for the commit. For example: user.name The default author name is App Factory.|
|COMMIT_MESSAGE||Specifies the message that is used for the commit. For example: Code commit for Test_Env.json|
After you configure the build parameters, you can trigger the export by clicking BUILD. The export process contains the following stages:
- Prepare the build node environment
- Export Volt MX Foundry application
- Clone Volt MX Foundry application from Git
- Check if there were changes
- Configure local Git account
- Prettify exported JSON files and move them to SCM
- Push changes to remote storing artifacts
- Notify on export status by email
After a successful export, the designated user receives an email alert.
After an unsuccessful export, the designated user receives an email alert on export failure.