improbable-eng / taskkill-buildkite-plugin

Run Sysinternals handle64.exe to find then terminate processes that have files open

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Taskkill Buildkite Plugin

A Buildkite plugin that allows running sysinternals handle64.exe prior to checkout, to ensure no files in the checkout directory are locked.

Requires handle64 in the PATH.

Unless a whitelist is specified, kills all processes.

Examples

Kills all processes in BUILDKITE_BUILD_CHECKOUT_PATH

steps:
  plugins:
    # https://github.com/improbable-eng/taskkill-buildkite-plugin
    - improbable-eng/taskkill: ~

Kills all processes in BUILDKITE_BUILD_CHECKOUT_PATH but not notepad.exe and explorer.exe

steps:
  plugins:
    # https://github.com/improbable-eng/taskkill-buildkite-plugin
    - improbable-eng/taskkill:
        whitelist: notepad.exe,explorer.exe

About

Run Sysinternals handle64.exe to find then terminate processes that have files open

License:MIT License


Languages

Language:PowerShell 82.5%Language:Batchfile 17.5%