tag:help.appveyor.com,2012-11-13:/discussions/problems/23106-only_commitsfiles-not-honoredAppVeyor: Discussion 2019-06-27T21:01:05Ztag:help.appveyor.com,2012-11-13:Comment/471885962019-04-19T13:59:24Z2019-04-19T13:59:24Zonly_commits.files not honored<div><p>Can you please post your full <code>appveyor.yaml</code>.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/471885962019-04-23T21:13:08Z2019-04-23T21:18:03Zonly_commits.files not honored<div><p>Here it is:</p>
<p><code>/ueat/backend/posserver/appveyor.yml</code></p>
<pre>
<code>version: 1.0.{build}
environment:
priv_key:
secure: [redacted]
nodejs_version: 6
branches:
only:
- master
- beta
- staging
image: Ubuntu
only_commits:
files:
- backend/posserver/**/*
install:
- sh: >-
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
nvm use v8
npm install -g yarn
cache:
- '%LOCALAPPDATA%\Yarn'
- backend/posserver/node_modules
build_script:
- sh: >-
cd backend/posserver
yarn
yarn build
7z a build.zip package.json yarn.lock release config deploy.ps1
appveyor PushArtifact build.zip -DeploymentName ueat-pos-server
test_script:
- cmd: yarn test
deploy:
- provider: Environment
name: ueat-mtl-beta-posserver
on:
branch: master
- provider: Environment
name: ueat-mtl-staging-posserver
on:
branch: staging
notifications:
- provider: Slack
incoming_webhook: https://hooks.slack.com/services/[redacted]
on_build_success: false
on_build_failure: true
on_build_status_changed: true</code>
</pre></div>mperrontag:help.appveyor.com,2012-11-13:Comment/471885962019-04-23T21:17:22Z2019-04-23T21:17:22Zonly_commits.files not honored<div><p>Here's why it's such an issue:</p>
<p>A single commit touching a file under ueat/frontend/order-app/ triggers builds on every projects, even if they are configured exactly like the one above (with <code>only_commits.files</code>)</p>
<p><a href="https://imgur.com/MUnjADX">https://imgur.com/MUnjADX</a></p></div>mperrontag:help.appveyor.com,2012-11-13:Comment/471885962019-04-26T23:58:45Z2019-04-26T23:58:45Zonly_commits.files not honored<div><p>Can you try to remove the wildcards, i.e. <code>backend/posserver/</code> and see if that changes anything.</p></div>Owen McDonnell