Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
GitLab Community Edition
GitLab Community Edition
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 10,414
    • Issues 10,414
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 533
    • Merge Requests 533
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLab Community EditionGitLab Community Edition
  • Issues
  • #19232

Closed
Open
Opened Jun 27, 2016 by Antoine Gaillard@antoine.gaillard13 
  • Report abuse
  • New issue
Report abuse New issue

Run jobs only/except when there are modifications on a given path

It would be nice if we could run jobs if there are modifications on paths matching a regex. For instance, if a commit only modifies files in the test subdirectory, only test stage would be run. This is achievable in Jenkins using "included/excluded regions" in Version Control configuration. In the gitlab-ci.yml, we could have something like:

  only:
    paths:
      - "^test/.*"

For completeness, this should also be supported on except.

Edited Feb 13, 2018 by Kamil Trzciński

Related issues

Assignee
Assign to
Epic
11.0
Milestone
11.0
Assign milestone
Time tracking
None
Due date
No due date
6
Labels
Accepting Merge Requests CI/CD customer direction feature proposal pipeline
Assign labels
  • View project labels
Reference: gitlab-org/gitlab-ce#19232