# Trigger jenkins scripted pipeline with variable parameter

**URL:** <https://community.jenkins.io/t/trigger-jenkins-scripted-pipeline-with-variable-parameter/7873>\
**Category:** Ask a question\
**Created:** [June 7, 2023, 4:28pm UTC](https://community.jenkins.io/t/trigger-jenkins-scripted-pipeline-with-variable-parameter/7873 "2023-06-07T16:28:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imran2908](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/imran2908/32/4496_2.png) [@imran2908](https://community.jenkins.io/u/imran2908)\
**Post date:** [June 7, 2023, 4:28pm UTC](https://community.jenkins.io/t/trigger-jenkins-scripted-pipeline-with-variable-parameter/7873/1 "2023-06-07T16:28:09Z")

</div>

how to trigger jenkins scripted pipeline with variable as parameter from the other scripted pipeline

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [June 8, 2023, 2:08pm UTC](https://community.jenkins.io/t/trigger-jenkins-scripted-pipeline-with-variable-parameter/7873/2 "2023-06-08T14:08:04Z")

</div>

Hello @imran2908 and welcome to this community 👋

To trigger a Jenkins scripted pipeline with a variable as a parameter from another scripted pipeline, I think you can make use of the `build` step and pass the parameter value using the `parameters` option.

---

<div class="post-metadata">

**Author:** ![imran2908](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/imran2908/32/4496_2.png) [@imran2908](https://community.jenkins.io/u/imran2908)\
**Post date:** [June 8, 2023, 5:49pm UTC](https://community.jenkins.io/t/trigger-jenkins-scripted-pipeline-with-variable-parameter/7873/3 "2023-06-08T17:49:54Z")

</div>

with build steps I am able to pass the variable within the same job. But when I am trying to pass this variable as parameter to another job, its not taking the value of the parameter.
