Globally Bound Variables

JFrog Integrations Documentation

Content Type
Integrations
ft:sourceType
Paligo

Variable Name

Variable Type

Comments

log

org.slf4j.Logger

Writes to Artifactory log

logger name is the name of the script file

repositories

org.artifactory.repo.Repositories

Allows queries and operations on repositories

and artifacts

security

org.artifactory.security.Security

Provides information about current security context,

(e.g., current user and their permissions)

searches

org.artifactory.search.Searches

API for searching for artifacts and builds

Since 2.3.4

builds

org.artifactory.build.Builds

Allows CRUD operations on builds

Since 2.6

Closure Variables

Note! Declaring your own closure variables using the Groovy 'def ' keyword is considered best practice. Avoiding the "def" keyword is risky in terms of variable scoping, and will result in the variable being scoped globally, making it accessible from other closure executions.

Plugins Repository

Enhancing Artifactory with user plugins is community-driven effort.

If you are looking to go beyond Artifactory's out-of-the-box functionality take a look at already contributed plugins on GitHub, you might find what you are thinking about. If not, your contribution is very welcome!