Create a Hudson/Jenkins - Build Trigger Webhook to Trigger a Jenkins Job on an Update to a Git Repository

You can use the Hudson/Jenkins - Build Trigger webhook to trigger a Jenkins job when a Git repository gets updated. It's not necessary for the Jenkins job to use a VB Studio project's Git repository as source.

You need to specify the Jenkins security settings to enable the webhook to connect to Jenkins.

If ... Do this:
Jenkins allows anonymous user to trigger a build
  1. Create an authentication token in the Jenkins job.
  2. Configure the webhook to connect to the Jenkins job using the authentication token.
Jenkins allows only authenticated users to trigger a build
  1. Get an authenticated user's API Access token.
  2. Create an authentication token in the Jenkins job.
  3. Configure the webhook to connect to the Jenkins job using the API Access and the authentication token.

You want to trigger the job without an authenticated user's credentials but anonymous access on Jenkins is disabled or lacks read permissions

or

Jenkins uses a build token root to trigger builds

  1. Install the Build Authorization Token Root Plugin on Jenkins if it has not already been installed.
  2. Create an authentication token in the Jenkins job.
  3. Configure the webhook to connect to Jenkins job using the authentication token.
Security is completely disabled on Jenkins. Configure the webhook to connect to the Jenkins job. No Jenkins configuration is required.