# Gatling-Scala framework - How to pass parameters from Jenkins file to gatling.config file?

**URL:** <https://community.gatling.io/t/gatling-scala-framework-how-to-pass-parameters-from-jenkins-file-to-gatling-config-file/7690>\
**Category:** Gatling (Open-Source)\
**Tags:** jenkins\
**Created:** [March 6, 2023, 7:15am UTC](https://community.gatling.io/t/gatling-scala-framework-how-to-pass-parameters-from-jenkins-file-to-gatling-config-file/7690 "2023-03-06T07:15:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monika](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Monika](https://community.gatling.io/u/Monika)\
**Post date:** [March 6, 2023, 7:15am UTC](https://community.gatling.io/t/gatling-scala-framework-how-to-pass-parameters-from-jenkins-file-to-gatling-config-file/7690/1 "2023-03-06T07:15:38Z")

</div>

How to pass parameters from Jenkins file to gatling.config file?

I have a scenario, where I need to update **requestTimeout** while staging 3 different scenarios in Jenkins file.

> http {  
> requestTimeout = 240000 // the value should be parameterised in Jenkins file  
> dns {  
> resolution  
> }  
> }

like in jenkins file

> ```
> stage("Run Gatling test 1") {
> steps {
> sh 'mvn gatling:test1'
> 
> ```
> 
> -----\> -DrequestTimeout = 240000 // how to update requestTimeout parameter in gatling.config file  
> }  
> post {always {gatlingArchive()}}  
> }  
> .  
> …
> 
> ```
> stage("Run Gatling test 2 - will take 2 hours to process the huge request") {
> steps {
> sh 'mvn gatling:test2'
> 
> ```
> 
> -----\> -DrequestTimeout = 7200000 // how to update requestTimeout parameter in gatling.config file  
> }  
> post {always {gatlingArchive()}}  
> }

Please provide a solution

---

<div class="post-metadata">

**Author:** ![GatlingPete](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/gatlingpete/32/1167_2.png) [@GatlingPete](https://community.gatling.io/u/GatlingPete)\
**Post date:** [March 6, 2023, 8:42am UTC](https://community.gatling.io/t/gatling-scala-framework-how-to-pass-parameters-from-jenkins-file-to-gatling-config-file/7690/2 "2023-03-06T08:42:01Z")

</div>

Hello Monika,

Thanks so much for reaching out. In general the way that we at Gatling recommend integrating a CI/CD solution with Gatling is to use Gatling Enterprise (Cloud, Self-Hosted, or Marketplace options) which has an API and native integrations that allow you easily to connect with Jenkins and many others. If you like feel free to reach out to me at [pdutka@gatling.io](mailto:pdutka@gatling.io) and I can set you up with a demo.

If you’re looking for an Open-Source solution maybe another community member can help you out.

All the best,  
Pete

---

<div class="post-metadata">

**Author:** ![Monika](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Monika](https://community.gatling.io/u/Monika)\
**Post date:** [March 6, 2023, 12:27pm UTC](https://community.gatling.io/t/gatling-scala-framework-how-to-pass-parameters-from-jenkins-file-to-gatling-config-file/7690/3 "2023-03-06T12:27:57Z")

</div>

@GatlingPete Thanks for responding, but I am looking for open source solution.  
@slandelle🤞  
can community members please help me.  
Thanks.

Also if there is a documentation to parameterise values from Jenkins file to Scala simulation please provide them.  
Please help me with examples.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [April 5, 2023, 12:28pm UTC](https://community.gatling.io/t/gatling-scala-framework-how-to-pass-parameters-from-jenkins-file-to-gatling-config-file/7690/4 "2023-04-05T12:28:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
