メインコンテンツまでスキップ

Build Triggers

1. Before You Start

Before using this feature, make sure that:

  • You have an account on the FPT Cloud DevOps Platform.
  • At least one Pipeline has been created.
  • A GitLab Connection has been configured.
  • You have administrator access to the Repository on GitLab.
  • The Pipeline has been saved successfully.

⚠️ Auto Trigger currently supports GitLab only.

2. Configure Auto Trigger(s)

2.1 Enable Auto Trigger

Enable trigger toggle

Steps

  1. Go to the Trigger(s) step while configuring the Pipeline.
  2. Turn on the Enable code source trigger(s) option.
  3. The system displays the Trigger configuration area.

Result

  • Auto Trigger is enabled.
  • You can now configure the Event and Branch Filter.

2.2 Select Event Types

You must select at least one event type.

Event TypeTriggers WhenUse Case
PushA new Commit is PushedContinuous Integration
Merge RequestA Merge Request is created or updatedCode Review Validation
TagA new Git Tag is createdRelease Pipeline

Result

  • The Pipeline runs whenever the corresponding event occurs.

2.3 Configure Branch Filter by Name

Include Branches

  • main
  • develop
  • feature/*
  • release/*

Exclude Branches

  • test/*
  • hotfix/*

Result

  • The Trigger only runs on branches that match the configured conditions.

💡 If you leave Include Branches empty, the Trigger runs on all branches (except those listed under Exclude).

2.4 Configure Branch Filter by Regex

RegexMeaning
^main$The main branch only
^(develop|staging)$The develop or staging branch only
.*feature.*All branches containing feature
.*release.*All branches containing release

Result

  • The Trigger only runs on branches that match the Regex condition.

⚠️ Invalid Regex is rejected by the system.

2.5 Manage Webhook

Webhook URL and Token

Webhook url token

ElementDescription
Webhook URLThe endpoint that receives events from GitLab
TokenThe Webhook authentication code
CopyCopies the value to the Clipboard

These values are generated automatically by the system and cannot be edited directly.

Register the Webhook in GitLab

  1. Copy the Webhook URL.
  2. Copy the Token.
  3. Open the GitLab Repository.
  4. Go to Settings → Webhooks.
  5. Create a new Webhook.
  6. Paste the URL and Token.
  7. Select the relevant events.
  8. Click Add Webhook.

Result

  • GitLab can send events to the FPT Cloud DevOps Platform.
  • The Pipeline is triggered automatically when a matching event occurs.

3. Manage Trigger(s)

3.1 Open the Trigger(s) Screen

Triggers management screen

The screen displays:

  • Trigger status
  • The configured Event
  • The current Branch Filter
  • Webhook URL
  • Token

3.2 Edit a Trigger

Edit trigger

  1. Open the Trigger(s) screen.
  2. Click the Edit icon.
  3. Update the Trigger configuration.
  4. Click Save Pipeline.

Result

  • The Trigger configuration is updated successfully.

3.3 Regenerate Token

  1. Open the Trigger(s) screen.
  2. Select Regenerate Token.
  3. Confirm the action.

Result

  • The system generates a new Token.
  • The old Token is invalidated immediately.

⚠️ After you Regenerate the Token, update the Token in the GitLab Webhook.

4. Common Issues

IssueCauseResolution
Pipeline does not run automaticallyAuto Trigger is not enabledCheck the Trigger Configuration
Code is Pushed but the Pipeline does not runThe branch does not match the FilterCheck the Branch Filter
GitLab reports a Webhook errorThe URL or Token is incorrectCheck the Webhook Configuration
Trigger stops working after a Token regenerationGitLab is still using the old TokenUpdate the new Token in GitLab
Webhook information is not shownThe Trigger is not enabledEnable Auto Trigger first

5. Notes & Tips

💡 Use a Branch Filter to avoid unintended Triggers.

💡 Grant Trigger management access only to the person responsible for CI/CD.

💡 Use GitLab's Test Webhook feature after configuring it.

⚠️ The old Token is invalidated immediately after a Regenerate.

⚠️ Auto Trigger currently supports GitLab only.