Android Service Configuration #
An Android service represents your mobile app in BuildPiper. This document explains how to create the service, choose a build strategy and link the service to an environment, which creates the Service Environment.
1. Create the Android Service #
Navigation: Application → select the application → Service Overview → add service.
- 1
Enter a service name, for example attendance-native-app.
- 2
Set Service Type to Android. The drawer can still be titled Add Micro Service. Use the Service Type selection to identify the workflow.
- 3
Choose How do you build, using the options described below.
- 4
Click Save & Continue to link the service to an environment.

Figure 1: Android service type and build strategy selection
| Build strategy | How to choose |
|---|---|
| Build once and promote | Choose this when your release process reuses a built artifact across environments. Confirm that the artifact is suitable for each destination. |
| Build for every environment | Choose this when each environment needs its own build configuration or output. The configuration page can describe this as Build for all environments. |
Note: These descriptions are guidance based on the option labels. Confirm the build and promotion behaviour of your job template before you use it across environments. Android builds can embed environment-specific values, so review your project configuration before you reuse the same artifact across destinations.
2. Link the Service to an Environment #
In Environment Basic Details, select an existing Application Environment. This creates the Service Environment, in which you configure and run the build and deployment workflow of the service.
- 1
Select the Environment, for example dev-env. Use Change Environment if necessary.
- 2
Review the registry mode and select the Artifactory.
- 3
Set the Artifact Name, the manual execution permissions and the App Package Name.
- 4
Select the job template generation and the required template.
- 5
Click Save & Continue.

Figure 2: Environment Basic Details
| Field | What to configure |
|---|---|
| Select Registry Configuration | The form provides two options: Provide Only Push Registry and Provide Pull and Push Registries. Select the option that matches your artifact workflow. In this example, Provide Only Push Registry is selected to push the generated build artifact to the configured registry. |
| Artifactory | The MinIO integration that stores the output. |
| Artifact Name | The service-specific artifact name or storage prefix, for example attendance-native-app/dev/dev-env. |
| Allow Manual Build | Select Yes to allow users to trigger a build process for this environment manually from the BuildPiper dashboard. |
| Allow Manual Deploy | Select Yes to allow users to initiate a deployment to this environment manually. |
| App Package Name | The exact Android application ID that the target app expects, for example org.opstree.app. |
| Select Job Template | Select the appropriate job template generation (e.g., Job Template Version 2), followed by the relevant Mobile or Android-specific template. For more information, refer to the Job Template Documentation. |
Note: The shared mobile template usually follows the name [application_name]_mobile-v2. The example in this guide selects attendance-mobile-demo-app_android-v2. Select the template that exists in your application and includes the required Android jobs.
Continue to manage the shared resources and credentials at the Application Environment level. The Service Environment holds the service-specific configuration and mappings.
3. Identifiers at a Glance #
Several identifiers used in the Android application workflow may look similar but serve different purposes. Use the following table to understand what each identifier represents and where it is configured.
| Identifier | What it identifies |
|---|---|
| App Package Name | Identifies the Android application (e.g., org.opstree.app). It must match the application ID of the generated artifact and the app registered in Google Play Console. |
| Namespace | The namespace of the Android project, set in the Gradle configuration. |
| Artifact Name | Defines the name or naming prefix used for the artifact destination. It is configured in Service Environment. |
| Artifact Path | Specifies the path to the build output file generated by the build process. It is configured in App Packaging. |
| Artifact Tag | Selects a stored build output when you deploy. |
| Version Code | Represents the internal version number used by Android to distinguish app releases. |
| Version Name | Represents the user-facing version of the Android application (e.g., 1.0.1). |
Read more: Mobile Workload Job Templates