# Code snippet

{% hint style="info" %}
**Note:** The programming language selected in Avo Assure must also be selected in Jenkins.
{% endhint %}

{% hint style="info" %}
**Note:** Below is an example of the code snippet. Follow the same process for other programming languages.
{% endhint %}

1. Navigate to the **Configuration** window, click **Build Environment**, and select **PowerShell** language from the dropdown.

<figure><img src="/files/6s7gZ0FQy4HSasEEGnuH" alt=""><figcaption></figcaption></figure>

2. Once **PowerShell** is selected, it will bring **Build Steps** window
3. Paste copied **Avo Assure Code Snippet** in **Command** section and click **Save** button

<figure><img src="/files/28yGkHevJQ2fwVHGCPOx" alt=""><figcaption></figcaption></figure>

4. After saving the configurations, user will be directed to the **dashboard** of the created item
5. Click **Build Now** button to trigger the execution of the configuration

<figure><img src="/files/o4ZawH7TCkqNTQQxq5hV" alt=""><figcaption></figcaption></figure>

6. Once execution is completed then navigate to **Console Output** window to view the details and status of the execution

<figure><img src="/files/JyZTfs1zT3OjPxh1XCS8" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** You can also see the newly created item in Dashboard once after saving it
{% endhint %}

<figure><img src="/files/mqLzmkwnEcwpPMEmVOmn" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/integrations-in-avo-assure/devops-integration/code-snippet/ci-cd-jenkins/jenkins-integration/code-snippet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
