This Azure DevOps build task augments the continuous integration (CI) trigger path filters feature.
The task prevents a build when a branch is pushed but contains no changes in path.
The primary purpose of the task is to prevent unnecessary builds on feature branches.
The task compares the files in the triggering commit, with the CI path filters. If the CI path filters do not include (or exclude) the files in the triggering commit, the build is cancelled.
Please note that the task assumes the triggering source is following the Gitflow workflow. In order to prevent master and release branch builds from being contaminated with updates from develop, CI triggered builds on master and release branches will not be cancelled by the task.
Navigate to the function directory
cd function
and run the build command
npm run build
(after the initial build, please remember to increase the version number in vss-extension.json, task.json and package.json).
For Azure DevOps installation instructions/requirements please see marketplace.md.
MIT
- Icon by Smashicons licensed under CC 3.0 BY
- Daniel Midler for the idea!