Skip to content
Docs

GitLab

Get a push when a GitLab CI pipeline finishes or a deployment succeeds or fails, on GitLab.com or self-managed GitLab.

Connect a GitLab project or group with a webhook. Opush pushes pipeline results and deployments. It works with GitLab.com and with self-managed GitLab, as long as your GitLab can reach https://opu.sh.

Set it up

Create the integration in Opush

In the app or the web console, add a service integration and pick GitLab. Give it a name if you like, for example the project name. Copy the Payload URL and the Secret.

Add the webhook in GitLab

In the project (or group), open Settings › Webhooks and click Add new webhook.

  • URL: the payload URL from Opush.
  • Secret token: the secret from Opush.

Choose the triggers

Check:

  • Pipeline events
  • Deployment events
  • Job events, only if you want job-by-job updates in live progress cards

Save and test

Save the webhook, then use Test › Pipeline events. Opush pushes the result of GitLab's sample pipeline.

A group webhook covers every project in the group. Opush adds the project path to each push so you can tell them apart.

What gets pushed

GitLab eventWhen Opush pushesSubtitleMessage
Pipeline eventsA pipeline passes or failsPipeline · FailedFix login bug · main #12
Deployment eventsA deployment succeeds or failsDeployed, Deploy failedproduction · Ship it

The push title is the integration's name. When the project path is different from the integration's name, it's added at the end of the message, for example Fix login bug · main #12 · acme/rocket.

Pipelines

The subtitle is the pipeline's name and the result. Pipelines without a name show "Pipeline". The message has the commit title, the branch and the pipeline number. Tapping the push opens the pipeline.

Cancelled and skipped pipelines aren't pushed. Failed pipelines arrive as time-sensitive notifications.

Deployments

The subtitle is the result, and the message has the environment and the commit title. Tapping the push opens the environment's URL if it has one. Cancelled deployments aren't pushed. Failed deployments are time-sensitive.

Options

  • Only push failures: skip pushes for pipelines and deployments that succeed.
  • Show progress as a Live Activity (iPhone and Android apps): while a pipeline or deployment is running, a live progress card shows which job is running and how far along it is.

Live progress for pipelines

A card opens when a pipeline starts running. GitLab's pipeline events list every job in the pipeline, so the progress bar is right from the start. Check Job events in GitLab to update the card as each job starts and finishes.

When the pipeline ends, the card shows the result and how long it took, then goes away on its own. The normal push tells you the result. Deployment cards show the time since the deployment started, with no progress bar.

See Live progress for how cards look on iPhone and Android.

Troubleshooting

GitLab shows recent requests and Opush's answers under Settings › Webhooks, in the webhook's Recent events.

  • 401: the Secret token doesn't match the secret in Opush. Paste it again.
  • 404: the integration was removed in Opush. Delete the webhook in GitLab, or create a new integration and update the URL.