Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,761
    • Issues 44,761
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,329
    • Merge requests 1,329
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #270957
Closed
Open
Issue created Oct 21, 2020 by Dmitriy@saloid0 of 6 checklist items completed0/6 checklist items

Support parallel keyword for trigger jobs

Release notes

The Parallel matrix keywords allow you to run a job multiple times in parallel, using different variable values for each instance of the job, in this release we've added the Parallel keyword to a trigger job allowing you to run multiple downstream pipelines in parallel (child or multi projects pipelines) using different variables value for each downstream pipeline, giving speed and flexibility to your pipelines.

Problem to solve

I can't run parallel matrix in job that triggers child pipelines. This job fails in Linter:

test_pipeline:
  trigger:
    include: CI/tests.yml
  parallel:
    matrix:
      - HW_REVISION:
        - REV_A
        - REV_B
  variables:
    HW_REVISION: $HW_REVISION

With this error:

jobs:test_pipeline config contains unknown keys: parallel
jobs:test_pipeline config should contain either a trigger or a needs:pipeline

So looks like I can't use parallel keyword in job with trigger

Intended users

Anybody who use the matrix builds and want to move some jobs in separate pipeline.

User experience goal

Same user experience with matrix builds for any type of jobs

Proposal

I am not completely sure that this is not implemented already - maybe our gitlab server admin just should to configure some settings. But if it's not implemented - would be nice to have ability to launch multiple parallel child pipelines.

Further details

Permissions and Security

Documentation

Availability & Testing

Proposed solution

test_pipeline:
  trigger:
    include: CI/tests.yml
  parallel:
    matrix:
      - HW_REVISION:
        - REV_A
        - REV_B

What does success look like, and how can we measure that?

What is the type of buyer?

Is this a cross-stage feature?

Links / references

Edited Mar 17, 2021 by Dov Hershkovitch
Assignee
Assign to
Time tracking