Actions

5 min read

Actions #

1. Actions Overview #

Overview

Once a service is configured for an environment, you can run actions on it directly from the service page. The action icons are available at the top right of the ENV BUILD DETAILS, ENV DEPLOY DETAILS and DATABASE MANAGEMENT tabs.

Actions: figure 1

Figure 1: Service Actions

Swipe horizontally to view all columns →
Action Description
Build Run a build for the service in the selected environment.
Deploy Deploy the service in the selected environment.
Promote Promote the service from one environment to another.
Run Now Execute the cron job immediately.
History View the history of the service.
Service Monitoring Monitor the service.

Build #

Click Build to open the Trigger a new Build screen for the selected environment. The screen has the MAIN BUILD options.

Actions: figure 2

Figure 2: Trigger a New Build

Main Build #

Swipe horizontally to view all columns →
Field Description
Docker Cache Enabled by default, Docker Cache improves build performance by reusing unchanged image layers and rebuilding only the layers affected by code or configuration changes. Disable this option when you need a clean build without using cached layers.
Enter Tag Specify a tag to identify the build, such as v1.0.1 or staging-v2. For more flexible or automated tag naming, select Provide Custom Tag.
Branch/Tag Name Select the Git branch or tag from which the build should run. Use the Tag tab to build from a specific release tag instead of a branch. Select Provide Custom Branch to enter a custom branch name.
Do you want to trigger a build for a specific commit ID? Enable this option to build code from a specific commit instead of the latest update on the selected branch. Enter the required Commit SHA to build that exact revision. This option is set to Disable by default.
Along with the main build secondary builds will also be performed. Override Details? Enable this option to override the configuration details for secondary builds that run alongside the main build.
Override Build Step Variables Enable this option to override the variables configured for the build steps. This option is set to Disable by default.
Sub Env Shows the environment and sub environment for the build, for example DEV and bp-dev.
Swipe horizontally to view all columns →
Button Description
TRIGGER BUILD Start the build.
TRIGGER BUILD & DEPLOY Start the build and deploy the result.

Advance Configuration #

Click ADVANCE CONFIGURATION to open the Advance Configuration for Main Build screen. Turn on the options you need.

Actions: figure 3

Figure 3: Advance Configuration for Main Build

Swipe horizontally to view all columns →
Field Description
Shallow Cloning Enabling Shallow Clone optimizes checkout speed and build performance by fetching a restricted Git history depth. Older commits outside this range are inaccessible. This may cause failures if your builds require specific Commit IDs or full repository history.
Docker Build Arguments Build-time variables passed to Docker using –build-arg. They are available only during the image build. For example: docker build –build-arg NODE_ENV=production –build-arg API_URL=https://api.example.com -t my-app .
Build Labels Add labels to the build.
Provide Runtime Environment variables Add runtime environment variables for the build.

Deploy #

Click Deploy to open the Trigger a new Deploy screen for the selected environment.

Actions: figure 4

Figure 4: Trigger a New Deploy

Swipe horizontally to view all columns →
Field Description
Sub Env Shows the environment and sub environment for the deployment, for example DEV and bp-dev.
Fetch tags from BP When enabled, the dropdown displays tags that were built and recorded within the BuildPiper platform. This is faster, as it pulls from the internal database rather than querying an external registry.
Tag Select the tag to deploy, for example 17, or click PROVIDE CUSTOM TAG.
Trigger Deploy Start the deployment.

Promote #

Click Promote to open the Trigger a new Promote screen. It promotes the image from the selected environment to another environment.

Actions: figure 5

Figure 5: Trigger a New Promote

Swipe horizontally to view all columns →
Field Description
Fetch tags from BP Enable this option to retrieve tags for successfully pushed artifacts from the BuildPiper database. If disabled, tags are fetched directly from the respective container registry.
Target Env* Select the target environment to which the image will be promoted.
New Tag Enter a new tag for the promoted image.
Tag* Select the existing image tag you want to promote, or click Provide Custom Tag to specify a tag manually.
TRIGGER PROMOTE Click to initiate the image promotion process using the selected source tag and target environment.

Run Now #

Click Run Now to open the Execute CronJob screen and trigger the CronJob immediately, without waiting for its next scheduled execution. This action does not modify the configured schedule.

The Last Execution Details section displays information about the most recent execution.

Actions: figure 6

Figure 6: Execute Cronjob

Swipe horizontally to view all columns →
Field Description
Select Deployments Select the deployment of the cron job to execute.
Execute Start the execution.
ACTIVITY STEPS STATUS Shows the step of the execution with its status and duration, for example RUN_NOW. Click VIEW LOGS to see the logs.
Parameters Shows the parameters of the execution.

History #

Click History to view the build, deployment, and promotion history for the selected environment. Use the BUILD, DEPLOY, and PROMOTE tabs to switch between the respective histories.

For each record, you can view the artifact tag, its compliance status (Compliant or Non-Compliant), associated parameters, and execution status. Depending on the operation, you can also use the available actions to rebuild or redeploy the artifact.

Actions: figure 7

Figure 7: Build History

Actions: figure 8

Figure 8: Deploy History