# Jenkins integration with cdefence

{% embed url="<https://youtu.be/Z4GQXNKOFok>" %}

### Setting up pipeline script

Click on your JOB -> Configure and setup up the pipeline script like following

<figure><img src="https://lh4.googleusercontent.com/WE6_jKzzFSz62E4YRqYesVtaj8PZVrEOAF1db7YiAmONMOSfibxvJ1QXM78wPyQ765QjbLjTo7ImDYWdFTEbDkcR0_EMyW4JzENK_wJU8VZg0i8AyR5fgoK5SpyK9P8ImupshqHbmbaKx3e-gxhOZFJjNPgwH1tiTnhODEGq6TAeYLcPeqO5qslWxA" alt=""><figcaption></figcaption></figure>

From above screenshot we conclude that,&#x20;

* We are cloning the project we want to scan&#x20;
* Getting our cdefense cli&#x20;
* Running it against that project

### Running build and results on UI

Click save and apply and hit build now

<figure><img src="https://lh6.googleusercontent.com/Ve0JoIsrQunQzRFVluTKOxRP5sohGlRJaDs_mAwXFohxBZHfGmDma9PG04hCzHZlcF9ZGjr6umXK6Uk3dGvaYPI-l0QZasY6QRUur83IBZ4srYICIUO6rB7M768daZbMrllK7bggzwklvRfEFjhrCVr_05ihlQGRlHr2_atkLAPKmGOru0k_jEdgxA" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/g9dUsr3vX51sUT3Dbeyq4iWfCCdegumUKa-s3yYgFl-Yi_D3YoToNAibPHixNkg8jG2vVLEyE4mi-KDBYFwBnnYnHQ00ZXf7IitPspcqNZ76fGJfaFkZBFJe6-qywGmxqBF1GCS1riRfONLcwNm3ROTEtY3gMDjXUe1zzxuMRjy6NHakiWm2R38FsA" alt=""><figcaption></figcaption></figure>

Once it done with the build and cdefense cli is done scanning you can see the results on our UI

<figure><img src="https://lh4.googleusercontent.com/41SoXnjcYw1tzcF55x9RXl8kKGIuvVUNkcgidrwRGWi_B2ZrVT89z1RlLfBwwiNUYUSu5zZvlwCq6jYdxqYTG80p47rNC-X5GLqVLvpTPDCednUXJuybGrt5XB7fWoVJJzBZ8jQCRsGnUs_R8ZGoK-BcoHYL9kYJd2YZZ627TcruuxgPwRV2IBczTA" 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.clouddefenseai.com/ci-cd/jenkins-integration-with-cdefence.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.
