Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Restricting steps to commits with certain file path patterns

ZenobiusJ June 20, 2018

We need to restrict our pipeline steps to only run when commits contain changes in our "client/**/*" filepath glob.

Concourse.ci, Drone.ci, and I assume other CI servers provide the option to restrict steps to commits only containing certain file paths.

Are we limited to manually grepping "git log" and emitting an `exit 1` ?

 

Ideally I'd want something like: 

 

...

- step:
image: node:alpine-8
script:
- npm install
- npm run prod
filter:
includes: client/src/**/*
...

So that commits containing:

- server/**/* and client/**/* would run the above step

- server/**/* would not run the above step

- client/**/* would run the above step

 

https://bitbucket.org/site/master/issues/16560/trigger-pipeline-only-if-certain-files-are

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events