Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting steps to commits with certain file path patterns

ZenobiusJ
Contributor
June 20, 2018 edited

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
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events