> To initiate branch indexing from a script, you must use the build REST API with an authentication token.
Which is exactly what we are trying to do. The build REST API however, only exposes this for the actual jobs (the /job/<project>/<job>/build endpoint). So either there is some endpoint we cannot find (some missing documentation I guess?). Or some configuration for an auth token that is missing. Or something else.
Most of us that are here, are here because we couldn't get it to work.
> This should be done with the webhook for the Git plugin, /git/notifyCommit.
Which only works if you use the Git plugin. However, since we kinda need GitHub build status notifications for commits, we use that instead. Neither could I find an alternative for this webhook when using the GitHub plugin.
Also, if we use some magic and trigger builds directly on the actual jobs themselves, this will have the side-effect that doing a re-index will also trigger a new build on the same job. Which means you have a lot of useless double builds clogging your build servers.
For now, we are forced to use active polling, and poll GitHub for changes every 2 minutes. However, we really prefer not to have to do that.