Run Jenkins job based on folder changes on the GIT

512 views
Skip to first unread message

Mark Simon

unread,
Apr 4, 2018, 12:09:40 AM4/4/18
to Jenkins Users
My Git repo contains 3 folders ( All 3 folders are in 1 repo)

A
B
C

I have 1 jenkins job ( Parameterised and remote trigger enabled via URL call) which need to invoke based on the folder changes


Ex. If folder A changes on the Git i need to invoke build1 & build2

If folder B changes on the Git i need to invoke build3 & build4


Can you suggest a solution to this?

Tomas Bjerre

unread,
Apr 4, 2018, 5:22:07 AM4/4/18
to Jenkins Users
What Git service do you use?

If it is GitHub, there is an example here using Generic Webhook Trigger:

You can probably use that plugin with most other Git services as well.
Reply all
Reply to author
Forward
0 new messages