Configure the Jenkins Job to Set an Authentication Token

You need to set the authentication token if Jenkins allows anonymous access, access to authenticated users only, or uses the build token root plugin. Use the same token name when you configure the webhook.

  1. Log on to Jenkins.
  2. Click the job name.
  3. From the links on the left side of the page, click Configure.
  4. Click the Build Triggers tab.
  5. Select the Trigger builds remotely (e.g., from scripts) check box.
  6. In Authentication Token, enter a unique string as a token. You can enter any string value. Example: my_auth_token
    Make sure that the authentication token isn't used in any other job.
  7. Continue to configure the job.
  8. When you're finished, click Save.