Do not run pipelines on tags for Drupal core

Created on 8 February 2024, over 1 year ago

Problem/Motivation

Core pipelines do fail when run on tags as seen here https://git.drupalcode.org/project/drupal/-/pipelines/78804
The reason is because they have this code in the "composer" job:

# Let composer know what self.version means.
  COMPOSER_ROOT_VERSION: "${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}${CI_COMMIT_BRANCH}-dev"

But none of those two variables are available on tags, so the string ends up being "-dev".

Steps to reproduce

Tag a core release and let the pipeline run, see it fail.

Proposed resolution

Do no run CI on tags. As sugested by @catch in this conversation here https://drupal.slack.com/archives/C03P8AM3B0Q/p1707324850758899?thread_t...

Remaining tasks

- MR
- Then create a tag of "gitlab_templates"
- Then change the "default-ref" to the newly created tag

📌 Task
Status

Active

Component

gitlab-ci

Created by

🇪🇸Spain fjgarlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024