How to Avoid Build Storms When Updating Pipeline Template Catalogs

1 minute readKnowledge base

Issue

Making changes to a pipeline template catalog will trigger builds for all jobs using that template. This can severely impact a controller’s performance.

Solution

Adding an id field in the SCM source section of the template.yaml file will prevent builds from triggering, as long as the id value remains the same:

version: 1
type: pipeline-template
name: no-trigger-template
templateType: MULTIBRANCH
parameters:
  - name: repoUrl
    displayName: Repo URL
multibranch:
  branchSource:
    git:
      remote: ${repoUrl}
      id: something
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.