Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

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.

Notifications You must be signed in to change notification settings

chriscoombs/cancel-build-ci-trigger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cancel Build for CI Trigger

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.

Build Instructions

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).

Azure DevOps Installation Instructions/Requirements

For Azure DevOps installation instructions/requirements please see marketplace.md.

License

MIT

Acknowledgments

  • Icon by Smashicons licensed under CC 3.0 BY
  • Daniel Midler for the idea!

About

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.

Resources

Stars

Watchers

Forks

Packages

No packages published