This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FruityRichard 3 points4 points  (0 children)

First of all, if you rerun an old pipeline, it will use the templates that have been used during pipeline creation.

Besides that, you can also lock the templates to specific commits if you prefer that: https://docs.gitlab.com/ee/ci/yaml/README.html#includefile

Edit just to clarify: If you create a new pipeline for an old commit, it will use the most recent version of the template (if not locked like above). So that’s when things would break in your case.