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

Changes outside of the specified Paths are triggering pipelines #384

Open
bajunkins opened this issue May 19, 2022 · 3 comments
Open

Changes outside of the specified Paths are triggering pipelines #384

bajunkins opened this issue May 19, 2022 · 3 comments

Comments

@bajunkins
Copy link

bajunkins commented May 19, 2022

Hi, I have two different git resources pointing to the same repository; one of them has a paths option pointing to a specific subdirectory. I'm finding that even changes outside of this subdirectory are triggering the job to run.

Here are the resources:

- name: master-git
  type: git
  icon: git
  source:
    branch: ((default-branch))
    uri: ((gitlab-url))/((gitlab-project)).git
    username: ((gitlab-username))
    password: ((gitlab-token))
  
- name: subdirectory-git
  type: git
  icon: git
  source:
    uri: ((gitlab-url))/((gitlab-project)).git
    username: ((gitlab-username))
    password: ((gitlab-token))
    branch: ((default-branch))
    paths:
      - subdirectory/**

For the paths options, I've tried several different approaches: - subdirectory/**, - subdirectory/*, - subdirectory

Here is the relevant part of the job:

- name: subdirectory-job
  serial: true
  plan:
    - get: master-git
    - get: subdirectory-git
      trigger: true 

This job is triggering from changes anywhere in the repo. I only want it to trigger for files under subdirectory/. Is this expected behavior? If so, how can I achieve what I'm looking for

@suhlig
Copy link

suhlig commented Aug 3, 2022

I see the same behaviour

Concourse 7.7.0

@wapplermarc
Copy link

wapplermarc commented Jun 22, 2023

The same here. Using Concourse 7.8.3.

@alv-lop
Copy link

alv-lop commented Dec 20, 2023

Same on Concourse 7.10

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

No branches or pull requests

4 participants