2

Is there a way to modify what branch a service hook is monitoring through a Jenkins job?

Our build jobs within Jenkins are triggered via service hooks within TFS. When we branch, inevitably we forgot to go over to TFS and update the service hook branch. Our thought was to have a Jenkins job, create the new branch and then perform some magic to update the service hook subscription with the new branch.

So far our research has come up with nothing.

2
  • 1
    Have you investigated tne TFS REST APIs? You could write a job that uses tje Git API to branch, then the Service hooks API to create or update the service hook.
    – Ian W
    Sep 27 '19 at 3:58
  • Could you reply to the comment?
    – 030
    Dec 25 '19 at 10:14

Browse other questions tagged or ask your own question.