Coder Social home page Coder Social logo

knom / vsts-regex-tasks Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 8.0 243 KB

VSTS Regex Build/Release Tasks

License: MIT License

PowerShell 100.00%
vsts-tasks regexp regex continuous-integration continuous-delivery azure-devops azure-devops-extension

vsts-regex-tasks's Introduction

RegexReplace Build/Release Task Version Visual Studio Marketplace Downloads GitHub License Build Status

A task for replacing REGULAR EXPRESSIONS in your files with variables and text in build and release pipelines.

Supported Platforms

  • Azure DevOps - Pipelines
  • Team Foundation Server 2015 Update 3 and higher (How to install extensions in TFS)
  • Only Windows - sorry, this is due to the lack of Powershell support of the underlying task FX platform :-(
  • Build Agents w. Powershell 3.0 or higher

Usage

1. Add the RegEx Find & Replace task to your build or release pipeline.

Extension Tasks

2. Configure the parameters

Screenshot

Parameters:

  • Search Paths to Input Files:
    • The search patterns to the files that should used in Find & Replace
    • New in v3: Supports multiple input lines and minimatching
  • Find RegEx:
    • The Regular Expression to FIND text

    • RegEx Groups (brackets) are used for the replace option

    • E.g. find all XML/HTML comments

          <!-- (.*) -->
      
  • Replace With:
    • The text to replace with

    • $1 is the first group, $2 the second, ...

    • E.g. replace them with what was within the comment (comment it IN)

          $1
      
  • New in v3: UseRAW (default true):
    • Whether to use RAW file read mode (might help with replace issues, such as newline)
  • New in v3: UseUTF8 (default true):
    • Whether to read the file in UTF8 (otherwise in ASCII)

License

Now published under MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.