haw to create multi branch project in jenkins with ansible

14 views
Skip to first unread message

Maher LEMSI

unread,
Mar 14, 2017, 5:36:40 AM3/14/17
to Ansible Project

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

this is my role:

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

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)

Reply all
Reply to author
Forward
0 new messages