# Modify configuration of existing Jenkins pipeline - via any programming language

**URL:** <https://community.jenkins.io/t/modify-configuration-of-existing-jenkins-pipeline-via-any-programming-language/1316>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [January 24, 2022, 2:07pm UTC](https://community.jenkins.io/t/modify-configuration-of-existing-jenkins-pipeline-via-any-programming-language/1316 "2022-01-24T14:07:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devendra121dev](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@devendra121dev](https://community.jenkins.io/u/devendra121dev)\
**Post date:** [January 24, 2022, 2:07pm UTC](https://community.jenkins.io/t/modify-configuration-of-existing-jenkins-pipeline-via-any-programming-language/1316/1 "2022-01-24T14:07:17Z")

</div>

Hi Jenkins community members,  
Hope all are doing good !!

Till now I have been creating the different pipelines on Jenkins but never modified the existing pipeline from outside. My question is regarding modifying the configuration of an existing Jenkins pipeline using any programming language (powershell, Java, python etc).  
For example in below image, I want to modify current configuration via calling a powershell script (or some other program) and add new ‘branch3’ in **Discover branches** section (e.g. branch1|branch2|branch3 ) , which I am creating via different pipeline. All these branches are part of BitBucket repository.

Has anyone done this before? If so then how it can be done? Some references will be highly appreciated.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/1X/57e33f038041978deb817e9d4dfd3b3588dd5fb7.png)

Regards,  
Dev

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [January 24, 2022, 8:49pm UTC](https://community.jenkins.io/t/modify-configuration-of-existing-jenkins-pipeline-via-any-programming-language/1316/2 "2022-01-24T20:49:20Z")

</div>

The remote access API page describes several different alternatives that can create jobs. As far as I understand it, a job can be modified through the same API that creates it.

> **[Remote Access API](https://www.jenkins.io/doc/book/using/remote-access-api/)**
>
> Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

The Python wrappers mentioned on that page are all reasonably current (2 with last releases in 2021, 1 with last release in 2020, 1 with last release in 2019). The ruby wrapper looks like it has not been released since 2017.
