Deploy Jira-to-Mattermost#
Create the namespace#
kswitch corp
kubectl create ns jira-to-mattermost
Add the secret for the registry#
export VAULT_ADDR=https://vault.infra-prd.caascad.com
vault token lookup || vault login -method oidc
vault read -field=value-json secret/concourse-infra/global/docker-registry-internal-ro | kubectl -n jira-to-mattermost apply -f
Deploy#
git clone git@git.corp.caascad.com:caascad/applications/jira-to-mattermost.git /tmp/jira-to-mattermost && cd /tmp/jira-to-mattermost
kubectl -n jira-to-mattermost apply -k kubernetes/base
Configure Jira#
Go to the WebHooks configuration at this address: https://jira.corp.caascad.com/plugins/servlet/webhooks#
You'll see two configurations:
-
Mattermost_jira caaschr to review and validated:
URL: https://jira-to-mattermost.corp.caascad.com/?webhook=https://mattermost.tech.orange/hooks/XXXX&username=Jira&dialect=mattermost&debug=1 Events: Issue related events JQL: project = "Caascad Change Request" Issueupdated: Exclude body Exclude body: No Transitions: No linked transitions. -
Mattermost_jira caasinc
URL: http://jira-to-mattermost.corp.caascad.com/?webhook=https://mattermost.tech.orange/hooks/XXXX&username=JIRA&icon=https://caassupv44.oss.eu-west-0.prod-cloud-ocb.orange-business.com/incident.png&dialect=mattermost&debug=1 Events: Issue related events JQL: project = "Caascad Incidents" Issuecreated: Exclude body Exclude body: No Transitions: No linked transitions.
To better understand the available query parameters:
| Name | Value | Default | Example |
|-----------|----------------------------------------|-----------|----------------------------------------------|
| webhook | Slack/Mattermost Webhook URL | Mandatory | https://hooks.slack.com/YOUR_HOOK |
| username | BOT username | - | JIRA |
| channel | Channel to show messages at | - | some-public-channel |
| icon | BOT icon emoji or URL | - | :speech_baloon: or https://.../jira.png |
| dialect | API dialect | slack | slack or mattermost |
| debug | Dump Jira and Slack messages to console| 0 | 0 or 1 |
Tip
The other parameters are related to the Jira configuration.