Ask Your Question

how to trigger jenkins gate job when commit in git using zuul if git has sub folders?

asked 2014-09-08 06:23:44 -0600

lafada gravatar image

I have one openstack project which I have to configure using zuul, jenkins-job-builder and git.

When developer commit his code, jenkins must run job which will run tests on that project for example.

I have project abc then configuration for this type of jenkins gate job is

# file: jenkins_job_builder/config/abc.yaml
- job:
    name: abc-unittests
      - gerrit-git-prep
      - shell: "./"

      - console-log

ZUUL layout config

# file: zuul/layout.yaml
- name: my/abc
      - abc-unittests
      - abc-unittests

So here my/abc is git repository. This config works fine and it will run the abc's when any developer commit its changes.

Now the problem is, abc is not a single git repository. abc has sub folders like abc/def, abc/ghi then how to configure zuul so it will trigger job for each sub folder.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-07 10:15:18 -0600

fifieldt gravatar image

It's probably best to ask this kind of question on the openstack-infra mailing list:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-09-08 06:23:44 -0600

Seen: 836 times

Last updated: Sep 07 '15