Groups
Groups
Sign in
Groups
Groups
Jenkins Users
Conversations
About
Send feedback
Help
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 AM
4/4/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
https://jenkins/........./.../build1
https://jenkins/........./.../build2
https://jenkins/........./.../build3
https://jenkins/........./.../build4
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 AM
4/4/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
What Git service do you use?
If it is GitHub, there is an example here using Generic Webhook Trigger:
https://github.com/jenkinsci/generic-webhook-trigger-plugin/blob/master/src/test/resources/org/jenkinsci/plugins/gwt/bdd/github/github-push-trigger-when-specific-file-changes.feature
You can probably use that plugin with most other Git services as well.
Reply all
Reply to author
Forward
0 new messages