runIf

See also: Actions

Description

Run actions only if a regex based condition is met. Other parameters and behavior are the same as the run action. By default the regex is used for a find of the value parameter. The options parameter can be set to one or more of the following to modify the default behavior. literal - to treat the regex string as a literal string, exact - to require an exact match of the value, negative - to reverse the condition so a match means do NOT run action. In addition, use '--regex ""' to match on an empty string. Use one or more field parameters to set replacement variables that can be used in run script actions. This makes it possible to parameterize the script so it can be applied to more general use cases. For example, '--field project=MYPROJECT'.

Required Parameters

regex, (file or input)

Optional Parameters

value, options, common, continue, simulate, field, encoding, clearFileBeforeAppend, findReplace, findReplaceRegex

Type

Run

Category

Run

Output Formats

Replacement Variables

Since Version

Examples

Related How To's


Find answers from the community.

Ask a question to the community.

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.