Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Plugin Information

View Pathignore on the plugin site for more information.

This plugin allows SCM-triggered jobs to ignore build requests if only certain paths have changed, or to build if and only if certain paths are changed.

Table of Contents

Description

Pathignore allows you to do one of two things:

  1. Do NOT allow a build to run if ALL of the changed paths match a given set of patterns.
    • This allows you to ignore specific paths, not triggering a build if only the specified paths have changed.
  2. Only allow a build to run if at least ONE of the files changed match a given set of patterns.
    • This allows you to only build for specific paths, not triggering a build if the paths you care about haven't changed.

Setup

To filter whether a build builds based on path, go to the configuration page of the job you care about, and check the box named Do not build if only specified paths have changed.

The default mode will not rebuild if only the specified paths have changed. The "inverted" mode will do #2 above, and only build if the specific paths have changed.

Patterns are separated by comma, and matched using Ruby's fnmatch.

A skipped build will be marked as NOT BUILT, not FAILED or SUCCESS.

Version history

0.2 (Nov 10, 2011)

  • First release.
  • No labels