Read more

GitLab scheduled pipeline: Don't notify owner

Andreas Vöst
November 14, 2022Software engineer at makandra GmbH

The owner of a scheduled CI/CD pipeline in GitLab will always be notified if the pipeline fails.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

Follow these steps if you don't want this:

  1. Create a Project Access Token with api scope and developer role
  2. Create the scheduled pipeline with that token:
    curl --request POST --header "PRIVATE-TOKEN: ${TOKEN}" \
      --form description="Daily pipeline check" \
      --form ref="master" \
      --form cron="0 10 * * *" \
      --form cron_timezone="UTC" \
      --form active="true" \
      "https://${GITLAB_URL}/api/v4/projects/${PROJECT_ID}/pipeline_schedules"
    
  3. Optional: Configure other notifications like Slack with Integrations
Posted by Andreas Vöst to makandra Operations (2022-11-14 11:03)