# haw to create multi branch project in jenkins with ansible

**URL:** <https://forum.ansible.com/t/haw-to-create-multi-branch-project-in-jenkins-with-ansible/23962>\
**Category:** Ansible Project\
**Created:** [March 14, 2017, 9:36am UTC](https://forum.ansible.com/t/haw-to-create-multi-branch-project-in-jenkins-with-ansible/23962 "2017-03-14T09:36:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maher\_LEMSI](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Maher\_LEMSI](https://forum.ansible.com/u/Maher_LEMSI)\
**Post date:** [March 14, 2017, 9:36am UTC](https://forum.ansible.com/t/haw-to-create-multi-branch-project-in-jenkins-with-ansible/23962/1 "2017-03-14T09:36:40Z")

</div>

I’am trying to create a multi branch project using `jenkins-job`

this is my role:

```auto
name: creatjob

    jenkins_job:

    name: assembly   
    url: http://localhost:10104
    user: "{{ user_agent }}"
    password: "{{ password_agent }}"

```

in my case I have two config.xml `./config.xml` and `/template/config.xml`

should the first or second

```auto
config: "{{ lookup('file','/tmp/config.xml') }}"
config: "{{ lookup('template','/tmp/template/config.xml') }}"

```

when I try to put both of them it tells me that it accepts only one config

(knowing that I can do it with only one branch)
