Skip to content

Add job and step-level tags for do and in_parallel steps - #9606

Merged
taylorsilva merged 1 commit into
masterfrom
371-job-tags
Jun 18, 2026
Merged

taylorsilva merged 1 commit into
masterfrom
371-job-tags

Conversation

@taylorsilva

@taylorsilva taylorsilva commented Jun 17, 2026 •

Copy link
Copy Markdown
Member

Changes proposed by this PR

closes #371

These are then passed down into all child steps. Child steps can override parent tags with their own tags.

Job-level tags are also passed into the job-level on_* hook steps.

Example pipeline using this new feature:

resources:
  - name: v2
    type: mock
    source:
      initial_version: v1

  - name: v1
    type: mock
    source:
      initial_version: v2

jobs:
  - name: job-level
    tags: ["some-tag"] # job-level
    plan:
      - in_parallel:
        - get: v1
        - get: v2

  - name: parallel-step
    plan:
      - tags: ["some-tag"] # in_parallel step
        in_parallel:
        - get: v1
        - get: v2

  - name: do-step
    plan:
      - tags: ["some-tag"] # do step
        do:
        - get: v1
        - get: v2

  - name: child-steps-override
    plan:
      - tags: ["some-tag"]
        do:
        - get: v1
        - get: v2
          tags: ["other-tag"] # overriding parent tags

One thing that some users may want that I'm not implementing in this, is a way to not inherit the tags from a parent step. For users that want that, you'll have to structure your job plan in such a way that your desired step(s) does not receive the tags from the parent step. I think we've given enough tooling here to allow users to do that now.

These are then passed down into all child steps. Child steps can
override parent tags with their own tags.

Job-level tags are also passed into the job-level `on_*` hook steps.

Signed-off-by: Taylor Silva <[email protected]>
@taylorsilva
taylorsilva requested a review from a team June 17, 2026 20:41
@taylorsilva taylorsilva added this to the v8.3.0 milestone Jun 17, 2026
@taylorsilva
taylorsilva merged commit 715212b into master Jun 18, 2026
11 checks passed
@taylorsilva
taylorsilva deleted the 371-job-tags branch June 18, 2026 14:30
@taylorsilva taylorsilva changed the title Define job-level tags, and step-level tags with do and in_parallel Add job-level tags, and step-level tags with do and in_parallel Jun 18, 2026
@taylorsilva taylorsilva changed the title Add job-level tags, and step-level tags with do and in_parallel Add job and step-level tags for do and in_parallel steps Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tags on job and pipeline level

1 participant