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.,, 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
- npm install
- npm run prod
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

0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events