You are not logged in. Click here to log in.

codeBeamer Application Lifecycle Management (ALM)

Search In Project

Search inClear

Tags:  not added yet

Configure GitHub webhook

Make sure there is a codeBeamer user with the same username as the pusher in GitHub or use the pusher email (see below)
Make sure there is no repository in the project with the same name

CB:/images/space.gif

Configure codeBeamer

There are 2 things to do in codeBeamer:

  1. Create user(s) who has the same username as the pusher(s) in GitHub
  2. Add the secret token of the webhook to codeBeamer configuration (see below)

Steps to configure secret token in codeBeamer:

  • Go to codeBeamer's System Admin page
  • Go to Application Configuration
  • Add "scc" node if it is not exist in your json (json root level)
  • Add "github" node if it is not exist in your json under "scc" node
  • Add "secretToken":"<secret_token_of_the_webhook>" under "github" node

Example:

Configure GitHub webhook

Steps to configure GitHub webhook:

  • Navigate to the Settings page of a repository
  • Choose Webhooks menu
  • Click to Add webhook
  • Fill out the fields
    • Payload URL: <codebeamer_url>/rest/scm/github/<project_id>
      Where codebeamer_url is the url of your codeBeamer and project_id is the id of your project where the GitHub repository will belong to after the first webhook execution
      Example: https://codebeamer.com/cb/rest/scm/github/1
    • Content type:
      • codeBeamer 9.3 and earlier: application/x-www-form-urlencoded
      • codeBeamer 9.4 and later: your choice
    • Secret: codeBeamer validates the source of the requests with the Secret Token. It is required to set the same SecretToken in GitHub and in codeBeamers's Application Configuration too (see above)
  • Choose Enable SSL verification or Disable (not recommended) according to your codeBeamer server SSL configuration
  • Select Just the push event (codeBeamer supports only push event)
  • Click Add webhook

Configure GitHub email address privacy

This feature is available since codeBeamer 9.5

In case there is no user in codeBeamer with the same username as the pusher in GitHub codeBeamer will use the user for repository operations who has the same email address as the pusher.

Please make sure GitHub use the correct email address in webhooks.

More information: https://help.github.com/en/articles/setting-your-commit-email-address#setting-your-commit-email-address-on-github