Ask Your Question
4

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

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

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
    builders:
      - gerrit-git-prep
      - shell: "./runTests.sh"

    publishers:
      - console-log

ZUUL layout config

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

So here my/abc is git repository. This config works fine and it will run the abc's runTests.sh 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
1

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

fifieldt gravatar image

It's probably best to ask this kind of question on the openstack-infra mailing list: http://lists.openstack.org/cgi-bin/ma...

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

Stats

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

Seen: 860 times

Last updated: Sep 07 '15