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 UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
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)