---
name: ContinuousDelivery-cli_setting_values
title: Setting consistent parameter values
description: As part of integrating IBM&reg; Continuous Delivery Pipeline for IBM Cloud&reg; with IBM Cloud&reg; DevOps Insights, you set consistent parameter values to publish data to DevOps Insights.
last-updated: 2024-04-12
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/ContinuousDelivery?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Setting consistent parameter values
{: #setting-values-cli}

DevOps Insights will reach end of service and be discontinued on **August 31, 2026**. After this date, the service will no longer be available. New DevOps Insights tool integrations can no longer be created. [Learn more](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-faq_region_feature_consolidation&format=markdown)
{: important}

As part of integrating IBM&reg; Continuous Delivery Pipeline for IBM Cloud&reg; with IBM Cloud&reg; DevOps Insights, you set consistent parameter values to publish data to DevOps Insights.
{: shortdesc}

DevOps Insights tracks deployment risk based on published test data. When you integrate DevOps Insights with your Delivery Pipeline, you are instrumenting DevOps Insights to gather information from the pipeline. Information that is gathered from the pipeline is presented in DevOps Insights dashboard to provide visibility into your DevOps process.

## Before you begin
{: #prereq-values-cli}

Configure Delivery Pipeline in your toolchain to build, test, and deploy. You must complete this step before you continue with the integration. For more information, see [Configuring Delivery Pipeline](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-deliverypipeline&format=markdown).

You need an API key to integrate with DevOps Insights. This API key has access to the toolchain, and is used to log in with the IBM Cloud&reg; command line interface (CLI). For more information, see [Managing user API keys](https://cloud.ibm.com/docs/iam?topic=iam-userapikey&interface=ui&format=markdown).

Install the IBM Cloud CLI. For more information, see [Getting started with the IBM Cloud CLI}}](https://cloud.ibm.com/docs/cli?topic=cli-getting-started&format=markdown).


## Setting environment properties
{: #setting-environment-properties}

Use the `logicalappname` and `buildnumber` parameters consistently for publishing data to DevOps Insights or for evaluating policies. To set `logicalappname` and `buildnumber` values consistently across pipeline stages, you need to set two properties in environment properties in the stage where you do the build.

The values of `MY_APP_NAME` and `MY_BUILD_NUMBER` are used in all stages. Use these values when you are integrating with Continuous Delivery. For example, set `MY_APP_NAME` to `My First App` and set `MY_BUILD_NUMBER` to `$BRANCH:$BUILD_NUMBER`.

Configure your pipeline to use these properties across all stages. Save these properties to the `build.properties` file in your build job and use the following script.

```text
echo "MY_APP_NAME=${MY_APP_NAME}" >> $ARCHIVE_DIR/build.properties
echo "MY_BUILD_NUMBER=${MY_BUILD_NUMBER}" >> $ARCHIVE_DIR/build.properties
```
{: codeblock}


## Setting environment properties within your delivery pipeline
{: #setting-properties-pipeline}

Next, on the pipeline configuration page, set a property with name `buildProperties` and the value `build.properties`. You must set the property name and the value for each stage in your pipeline.

1. From the IBM Cloud console, click the menu icon ![hamburger icon](images/icon_hamburger.svg), and select **Resource List**.
2. Select your toolchain.
3. From your toolchain's Overview page, on the **Delivery pipelines** card, click the pipeline that you want to use.
4. Click the **Settings** icon ![gear icon](images/settings.svg) > **Configure Stage**.
5. Select the **Environment properties** tab.
6. If your API key isn't listed, click **+ Add property** > **Secure property**, and add your API key.  
7. Click **+ Add property** > **Properties file**.
8. Enter `buildProperties` as the name and `build.properties` as the value.
9. Click **Save**.


## Next steps
{: #next-values-cli}

[Publish a build record](https://cloud.ibm.com/docs/ContinuousDelivery?topic=ContinuousDelivery-publish-build-cli&format=markdown).