Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement]: Add ability to batch yaml pipeline by all triggers #19478

Closed
PatrickMunsey opened this issue Jan 27, 2024 · 2 comments
Closed

Comments

@PatrickMunsey
Copy link

Task name

Add ability to batch yaml pipeline by all event triggers

Describe your feature request here

Current Behaviour

Currently when ymal pipeline triggers are configured for multiple tags, if multiple tags are pushed at the same time to the same commit and branch, multiple builds will be triggered even if batch: true. This is because batch only batches builds triggered by the same event type.

trigger:
  batch: true
  tags:
    include:
      - '@app1@*'
      - '@app2@*'
      - '@api1@*'

Proposal

Add some sort of configuration that would allow for broader batching of a pipelines builds across all triggers. If 2 or more tags are pushed to the same commit at the same time, only one build of the pipeline should be run. e.g.

# maintains current behaviour
trigger:
  batch: true

perhaps extend current configuration to allow for something like

# Batches all pipeline event triggers so a single build for the entire pipeline only happens at a time.
trigger:
  batch: 
    - tags
    - branches

Why is this needed

I have a deployment pipeline for an application that consists on multiple sub libraries (infra, k8s charts, app, api etc.). Each of these are versioned and tagged so that docker builds etc are versioned correctly. Whenever each of these components/ tags are updated, I only need to trigger the associated pipeline once to ensure the current deployment is synced to the current verison for all sub libraries.

There is no way to make it so that the pipeline is only run once if multiple tags are updated and pushed to a single commit.

@ismayilov-ismayil
Copy link
Contributor

Hi @PatrickMunsey thanks for reporting! We are working on more prioritized issues at the moment, But will get back to this one soon.

Copy link

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants