Pipelines Extension Expressions

JFrog Pipelines Documentation

ft:sourceType
Paligo

The syntax models for Pipelines extensions use several common expression types.

Data Types

Data types are declared with a type tag in a property definition block. They can specify one of the predefined or user-defined data types:

Data type

Valid Format

Email

email format (foo@bar.com)

Url

url format (http:#foo.com)

IP

IPv4 (129.89.23.1) or IPv6 format

IPv4

IPv4 (129.89.23.1) format

IPv6

IPv6 format

String

any string

Alpha

string composed of letters only

Alphanumeric

string composed of alphanumeric, but no symbols (so "_abc" will fail)

Numeric

string composed of numbers only

Int

a valid integer value

Float

a valid floating point number value

Decimal

any valid number

UUID

universally unique identifier (128-bit number) only

Date

date string only

Boolean

boolean value (true/false)

Integration

a valid integration type (available only to resource model)

Array

Any of the above data types (other than Integration) can be declared as an array with the addition of brackets. For example: String[], Int[]

Validation Expressions

These expressions are used in a validate specification within a property definition block.

Keyword

Description

isRegEx: ["^[a-z]+$",'i']

string conforms to a regular expression (RegExp) string

notRegEx: ["^[a-z]+$",'i']

any string other than characters represented in a regular expression (RegExp) string

isLowercase: <boolean>

when set to true, checks for lowercase

isUppercase: <boolean>

when set to true, checks for uppercase

notNull: <boolean>

when set to true, won't permit null value

isNull: <boolean>

when set to true, permits only a null value

notEmpty: <boolean>

when set to true, don't permit empty strings

equals: <string>

must match the given string

contains: <string>

must contain the given substring

notIn: ['foo', 'bar']

check the value is not one of these

isIn: ['foo', 'bar']

check the value is one of these

notContains: <string>

must not contain specific substrings

len: [2,10]

only allow values with length between 2 and 10

isAfter: <date string>

only permit date strings after a specific date

isBefore: <date string>

only permit date strings before a specific date

max: <integer>

value must be less than or equal to <integer>

min: <integer>

value must be greater than or equal to <integer>