These two integrations link your development work to tasks in Task Management.
GitHub posts a comment on a task when a pull request or push mentions it, and a merged pull request can move the task to another stage. Jenkins posts a comment on every task behind the pull requests it shipped after a deploy. This guide is for the people who manage your code repository and build server.
Before you start
You need access to System Administration.
You need permission to add webhooks in your GitHub repository.
Your team needs to mention the task on the pull request or branch (see Link a pull request to a task below).
Connect GitHub
Go to System Administration → Integration.
On the GitHub card, click Configure.
Click Copy next to the Webhook URL.
Click Rotate secret to create a secret. The secret is shown when you rotate it, so copy it then. Treat it like a password.
Under Stage on merge, choose the stage a task moves to when its pull request is merged. The default is "Waiting for testing" if that stage exists.
Turn Post deploy comments on or off.
In GitHub, open the repository and go to Settings → Webhooks → Add webhook.
Paste the webhook URL into Payload URL.
Set Content type to application/json.
Paste the secret into Secret.
Under events, choose Let me select individual events and tick Pull requests and Pushes.
Add the webhook, then click Done in Teammate.
Link a pull request to a task
Mention the task in the branch name or the pull request title by its reference, for example sean-fix-TASK-1042. To get the reference, use Copy reference on the task. You can also paste the task link in the pull request description.
Connect Jenkins
Go to System Administration → Integration.
On the Jenkins card, click Configure.
Copy the Endpoint URL.
Click Rotate token to create a token, and copy it. Treat it like a password.
Add a post-deploy step in Jenkins that sends a POST request to the endpoint URL. Send a header called X-Teammate-Integration-Token containing your token, and a JSON body. The example shown in Teammate uses environment, branch, buildNumber, buildUrl, prNumbers and taskIds.
Click Done.
In the body, environment is dev, beta or live. prNumbers, taskIds and taskRefs (for example TASK-1042) are all optional.
Check that it is working
Both configure windows have an Events list showing the last 100 calls from GitHub and Jenkins. Click Refresh to update it. It says "No events yet" until GitHub or Jenkins calls Teammate for the first time.
Troubleshooting
No events appear. Check the webhook or post-deploy step is using the URL shown in Teammate, then click Refresh.
A task did not get a comment. Check the branch name, pull request title or description mentions the task reference or link.
GitHub shows the webhook as failing. Check the secret in GitHub matches the one created with Rotate secret. Rotating again creates a new secret, so update GitHub if you do.
Jenkins calls are rejected. Check the token in the header matches the one created with Rotate token.
Was this helpful?
