---
title: "[Xray] How to create a use a parameterized project in Jenkins"
canonical: "https://docs.getxray.app/space/ProductKB/46268767/%5BXray%5D%20How%20to%20create%20a%20use%20a%20parameterized%20project%20in%20Jenkins"
format: markdown
---
<span style="color: #172b4d">Sometimes, it is useful/necessary to turn the builds in Jenkins more flexible/dynamic. For that, in the Jenkins job, you can configure it as a parameterized project.</span>

### Example using a Freestyle project and a multipart endpoint

- Create a freestyle project
- <span style="color: #373a3c">In the job configuration page check the option "This project is parameterized" and click in the option “Add Parameters”. There is a drop-down option to configure parameterized build options (like a boolean attribute, or a string attribute).</span>
- <span style="color: #373a3c">Example:</span>
- *<span style="color: #373a3c">In the previous example, I just have created two parameters that will be used to define the description of the Test Execution and in which project the new Test Execution will be created based in the parameters that will be passed when running the job.</span>*
- <span style="color: #373a3c">In the Post-Build: Xray: Results Import task, you configure where the parameters will be read and used, using the syntax </span>*<span style="color: #373a3c">${parametername} (${Description} and ${ProjectKey})</span>*
- <span style="color: #373a3c">Save it</span>
- <span style="color: #373a3c">Now you will notice that the “Build Now” text has changed to “Build Now with Parameters”, and clicking on the link provides you the option to set those parameters for the build.</span><span style="color: #373a3c">Example:</span>
- <span style="color: #373a3c">Console Output in Jenkins</span>
- <span style="color: #373a3c">New Test Execution created in Jira </span><u><span style="color: #373a3c">(CALC-2253)</span></u>


## Related Documentation

- [Integration with Jenkins](https://getxraydocs.atlassian.net/wiki/spaces/XRAY/pages/301501616)