Platform
Komunikasi dan Kolaborasi
Abdullah Fathi
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/5392300/fotia-logo-smaller.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10632669/pasted-from-clipboard.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10662965/pasted-from-clipboard.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10830443/pasted-from-clipboard.png)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10868844/logo_devops__3_.png)
Pautan Muat Turun
Apa itu Mattermost?
Merupakan platform yang menyediakan perkhidmatan komunikasi dan kolaborasi antara ahli pasukan. Integrasi Mattermost dengan GitLab boleh dilaksanakan bagi tujuan mewujudkan Issues dan memulakan CI/CD jobs
Team
Consists of several channels within itself
Channel
Group for a specific purpose
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10632669/pasted-from-clipboard.png)
Log Masuk Mattermost
- Layari laman https://connect.osdec.gov.my/
- Klik pada "log-in with" Gitlab
- Pada halaman Gitlab, klik pada "sign in with" DevOps IAM
- Masukkan username dan password
- Gitlab akan meminta kebenaran untuk mengakses mattermost.
- Klik pada butang "Authorize".
- Halaman Mattermost Team creation akan dipaparkan
- Anda boleh menjana Team baru atau memasuki Team sedia ada
- Klik pada butang "Next" dan akhir sekali klik pada butang "Finish"
1. Integrasi diantara Mattermost dan Gitlab
(Slash Command)
- Navigate to your project in https://code.osdec.gov.my/
- In your project page, click on "Settings" -> "Integrations"
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10633461/gitlab-project-setting.png)
3. Click on "Mattermost slash commands"
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10633471/gitlab-project-integration.png)
4. Click on "Add to Mattermost"
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10633474/gitlab-project-integration2.png)
5. Configure Mattermost Command (if needed), then click on "Install" button
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10633480/gitlab-project-integration3.png)
2. Integrasi diantara Mattermost dan Gitlab
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10998472/pasted-from-clipboard.png)
1. In Mattermost channel, type "/gitlab connect"
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10998474/pasted-from-clipboard.png)
2. Click on "Authorized" button
3. Subscribe to project and group
For each project you want to receive notifications for or subscribe to, you must create a webhook. Run the subscribe slash command to watch events sent from GitLab.
/gitlab subscriptions add group[/project]
Run the webhook slash command to have GitLab send events to Mattermost.
/gitlab webhook add group[/project]
Mattermost GitLab Plugin -
Slash Command Help
-
/gitlab connect
- Connect your Mattermost account to your GitLab account -
/gitlab disconnect
- Disconnect your Mattermost account from your GitLab account -
/gitlab todo
- Get a list of unread messages and merge requests awaiting your review -
/gitlab subscriptions list
- Will list the current channel subscriptions
-
/gitlab subscriptions add owner[/repo] [features]
- Subscribe the current channel to receive notifications about opened merge requests and issues for a group or repository-
features
is a comma-delimited list of one or more the following:- issues - includes new and closed issues
- jobs - includes jobs status updates
- merges - includes new and closed merge requests
- pushes - includes pushes
- issue_comments - includes new issue comments
- merge_request_comments - include new merge-request comments
- pipeline - includes pipeline runs
- tag - include tag creation
- pull_reviews - includes merge request reviews
- label:"<labelname>" - must include "merges" or "issues" in feature list when using a label
- Defaults to "merges,issues,tag"
-
/gitlab subscriptions delete owner/repo
- Unsubscribe the current channel from a repository/gitlab pipeline run [owner]/repo [ref]
- Run a pipeline for specific repository and ref (branch/tag)/gitlab me
- Display the connected GitLab account-
/gitlab settings [setting] [value]
- Update your user settingssetting
can be "notifications" or "reminders"value
can be "on" or "off"
/gitlab webhook list [owner]/repo
- Will list associated group or project hooks.
-
/gitlab webhook add owner[/repo] [options] [url] [token]
-
options
is a comma-delimited list of one or more the following:*
- or missing defaults to all with SSL verification enabled- *noSSL - all triggers with SSL verification not enabled.
- PushEvents
- TagPushEvents
- Comments
- ConfidentialComments
- IssuesEvents
- ConfidentialIssuesEvents
- MergeRequestsEvents
- JobEvents
- PipelineEvents
- WikiPageEvents
- SSLverification
url
is the URL that will be called when triggered. Defaults to this plugins URLtoken
Secret token. Defaults to secret token used in plugin's settings.
-
Your feedback matters
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10694629/WhatsApp_Image_2023-08-23_at_10.44.59.jpeg)
![](https://s3.amazonaws.com/media-p.slid.es/uploads/802713/images/10694633/giphy.gif)
There are no secrets to success. It is the result of preparation, hard work, and learning from failure. - Colin Powell
THANK YOU
Mattermost
By Abdullah Fathi
Mattermost
- 107