Actions

9 min read

Actions #

1. Actions Overview #

Overview

Once a service is configured for an environment, you can run actions 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 screenshot 1

Figure 1: Service Actions

You can also run these actions from the Service Overview page, which lists all services in the application. Expand a service card and select the environment from the Env dropdown. The same action icons appear at the bottom right of the card, below BUILD STATUS and DEPLOY STATUS. Both places open the same screens, which are described in the sections below.

Actions screenshot 2

Figure 2: Actions on the Service Overview Page

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.
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 displays the available BUILD options, followed by the Last Build Details section.

Actions screenshot 3

Figure 3: Trigger a New Build

Main Build #

Swipe horizontally to view all columns →
Field Description
Docker Cache Toggle to use the Docker cache for the build. Set to Yes in the example.
Enter Tag / Branch Name Enter the tag for the build and select the branch to build. To use your own values, click Provide Custom Tag or Provide Custom Branch.
ADVANCE CONFIGURATION Opens the advanced build settings.
Do you want to trigger a build for a specific commit ID? Toggle to build a specific commit. Set to No by default.
Along with the main build secondary builds will also be performed. Override Details? Toggle to override the details of the secondary builds that run along with the main build. This option is available only when a secondary build has been configured in the system.
Override Build Step Variables Enable this option to override the build step variables. It is disabled by default.
Sub Env Shows the environment and sub environment for the build, for example master environment is DEV and sub environment of type DEV is bp-dev.
Swipe horizontally to view all columns →
Button Description
Cancel Close the screen without triggering a build.
TRIGGER BUILD Start the build.
TRIGGER BUILD & DEPLOY Start the build and deploy the result.

Last Builds Details #

This section shows the latest build, for example Build #20, with its status (SUCCESS), duration and the user who triggered it. Click Refresh to update the status.

Swipe horizontally to view all columns →
Item Description
ACTIVITY STEPS STATUS Shows each step of the build with its status and duration, for example Cloning Repository. Click VIEW LOGS to see the logs.
View Activity Details View the activity details of the build.
Rebuild Run the build again.
Workspace Open the workspace of the build.

Deploy #

Click Deploy to open the Trigger a new Deploy screen for the selected environment. Below it, Last Deploys Details shows the latest deployment.

Actions screenshot 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.
Tag/ Fetch tags from BP Select the tag you want to deploy from the dropdown (e.g., 23) or click PROVIDE CUSTOM TAG to enter a custom tag. When Fetch tags from BP is set to Yes, the dropdown displays tags previously built and recorded in BuildPiper. This improves performance by retrieving tags from BuildPiper’s internal database instead of an external container registry.
Available Deployments Select the deployment you want to trigger. Multiple deployments can be selected from the dropdown, if supported. A badge such as 1+ shows how many more deployments are selected.
Cancel Close the screen without deploying.
Trigger Deploy Start the deployment.

Last Deploys Details shows the latest deployment, for example Deploy #1, with its status (for example RUNNING or SUCCESS), duration and the user who triggered it. While the deployment runs, ACTIVITY STEPS STATUS shows each step, for example Pre Hooks Executing; click VIEW LOGS to see the logs. Click Refresh to update the status.

Promote #

Teams may need to restrict artifact promotion to ensure deployments follow an approved sequence of environments. BuildPiper allows administrators to configure promotion rules through System Settings → Deployment & CD Configuration, where they can define the permitted environment hierarchy for artifact promotion. These rules ensure that artifacts are promoted only through the configured sequence, such as DEV → QA → UAT → Staging → Production.Click Promote to open the Trigger a new Promote screen. It promotes the image from the selected environment to another environment. Below it, Last Promote Details shows the latest promotion.

Actions screenshot 5

Figure 5: Trigger a New Promote

Swipe horizontally to view all columns →
Field Description
Fetch tags from BP Toggle to fetch the available tags from BuildPiper. Set to Yes in the example.
Target Env* Select the environment to promote the image to.
New Tag Enter a new tag for the promoted image.
Tag* Select the tag to promote, or click Provide Custom Tag.
CANCEL Close the screen without promoting.
TRIGGER PROMOTE Start the promotion.

Last Promote Details shows the latest promotion, for example Promote #9, with its status (SUCCESS), duration and the user who triggered it. Click Refresh to update the status.

History #

Click History to see the history of builds, deploys and promotes for the selected environment. Use the BUILD, DEPLOY and PROMOTE tabs to switch between them.

Build History #

Actions screenshot 6

Figure 6: Build History

The history screen opens for the selected service and environment. Use the Artifact search box at the top to find a specific artifact, click Refresh to reload the list, or click X to close the screen.

Swipe horizontally to view all columns →
Item Description
BUILD / DEPLOY / PROMOTE Switch between the build, deploy and promote history.
Build by Filter the list by who triggered the build. Set to All by default.
Status Filter the list by status, for example SUCCESS or REVOKED. Set to All by default.
+MORE Add more filters.
Reset Clear all filters.

Each row in the list is one run. The list shows these columns:

Swipe horizontally to view all columns →
Column Description
Type The run number, for example Build #20.
Status The result of the run, for example SUCCESS or REVOKED.
Date/Duration The date of the run and how long it took.
Artifact The artifact tag created by the run, for example 20. The shield icon next to it shows whether the tag is compliant with the compliance rules: a green shield means Compliant Tag (shown when you hover over it), and a red shield means the tag is non-compliant. Click the copy icon to copy the tag.
Build by The pipeline that triggered the run, if any, and the user who triggered it.
Job Template The job template used for the build, for example Global-generic-extensive.

Each row also has the same action icons as the Last Builds Details section:

Swipe horizontally to view all columns →
Item Description
Parameters Open the BUILD PARAMETERS DETAILS pop-up, which lists the parameters used for the run. The parameters are described in the table below.
View Activity Details View the activity details of the run.
Rebuild Run the build again.
Revoke Stop a run that is in progress. The icon is greyed out for completed runs.
Workspace Open the workspace of the build.

Click Parameters on a build row to see the build parameters:

Actions screenshot 7
Swipe horizontally to view all columns →
Parameter Description
tag The tag of the build, for example “24”.
no_cache Whether the build ran without the Docker cache.
custom_tag The custom tag, if one was provided. Shows null otherwise.
trigger_by The user who triggered the build.
branch_name The branch that was built, for example “main”.
compliance_rule The compliance rule applied to the build. It lists the job templates treated as compliant and non-compliant, and decides whether the artifact tag is marked compliant.
job_template_name The job template used for the build, for example “Global-generic-extensive”.
activity_master_code The type of activity, for example “ENVIRONMENT_BUILD”.
shallow_cloning_depth The depth used when cloning the repository, for example 1.
Commit Id The commit that was built. Click the copy icon to copy it.
Commit Msg The message of the commit that was built. Click the copy icon to copy it.

Deploy History #

Click the DEPLOY tab to see the deploy history. Use the Deployment dropdown at the top right to choose the deployment, for example kubelift-fe-dev.

Actions screenshot 8

Figure 7: Deploy History

Deploy History works like Build History. These items are different:

Swipe horizontally to view all columns →
Item Description
Deployed by Filter the list by who triggered the deployment. Set to All by default.
Status Filter the list by status, for example SUCCESS or FAILED. Set to All by default.
Deployment Select the deployment to show the history for. Available on the DEPLOY tab.
Artifact The artifact tag that was deployed, for example 44. The shield icon shows whether the tag is compliant (green) or non-compliant (red). Click the copy icon to copy the tag.
Deployed By The user who triggered the deployment.
Job Template The job template used to build the deployed artifact, for example Global-react-manual-ci.
Redeploy Deploy the same artifact again. Shown as the upload icon, in place of Rebuild.

Click View Activity Details on a row to show ACTIVITY STEPS STATUS for that deployment. It lists each step with its duration, for example pre_hook_step, Pod Shift and K8S_ROLLOUT_VALIDATION. Click VIEW LOGS to see the logs.

Click Parameters on a deploy row to open the parameters pop-up. Switch between BUILD PARAMETERS and DEPLOY PARAMETERS. The deploy parameters are:

Actions screenshot 9
Swipe horizontally to view all columns →
Parameter Description
tag The artifact tag that was deployed, for example “44”.
dry_run Whether the deployment ran as a dry run.
user_id The ID of the user who triggered the deployment.
init_tag Whether an init container tag was used.
trigger_by The user who triggered the deployment.
component_id The ID of the service.
component_name The name of the service, for example “kubelift-fe”.
deploy_by_user The user who ran the deployment.
compliance_rule The compliance rule applied to the deployment. It lists the job templates treated as compliant and non-compliant.
deployment_name The name of the deployment, for example “kubelift-fe-dev”.

Promote History #

Click the PROMOTE tab to see the promote history.

Actions screenshot 10

Figure 8: Promote History

Promote History works like Build History. These items are different:

Swipe horizontally to view all columns →
Item Description
Promoted by Filter the list by who triggered the promotion. Set to All by default.
Promoted to/Promoted by The target environment the image was promoted to, for example ot-payment-qa-bp-qa, the pipeline that triggered the promotion, if any, and the user who triggered it.
Promoted from The source environment the image was promoted from, for example ot-payment-dev-bp-dev.
Parameters Open the PROMOTE PARAMETERS DETAILS pop-up, which lists the details of the promotion. The details are described in the table below.
Revoke Stop a promotion that is in progress. The icon is greyed out for completed promotions.

Promote History has no Artifact or Job Template column, and no View Activity Details, Rebuild or Workspace icons.

Click Parameters on a promote row to see the promote parameters. Click the copy icon next to any value to copy it.

Swipe horizontally to view all columns →
Parameter Description
Artifact The artifact tag that was promoted, for example 17.
Commit Id The commit the artifact was built from.
Commit Msg The message of that commit.
Promoted By The user who triggered the promotion.
Promoted From The source environment, for example ot-payment-dev-bp-dev.
Promoted To The target environment, for example ot-payment-qa-bp-qa.

Service Monitoring #

Click Service Monitoring to monitor the pods of the service in the selected environment. For details, see the Service Monitoring document.