Artifactory-Client
view release on metacpan or search on metacpan
then recursively calculates the SHA256 of each item in the folder and attaches the property to each item.
## retrieve\_artifact( $path, $filename )
Takes path and retrieves artifact on the path. If $filename is given, artifact content goes into the $filename rather
than the HTTP::Response object.
## retrieve\_latest\_artifact( path => $path, version => $version, release => $release, integration => $integration,
flag => 'snapshot', 'release', 'integration' )
Takes path, version, flag of 'snapshot', 'release' or 'integration' and retrieves artifact
## retrieve\_build\_artifacts\_archive( $payload )
Takes payload (hashref) then retrieve build artifacts archive.
## retrieve\_folder\_or\_repository\_archive( path => '/foobar', archiveType => 'zip' )
Retrieves an archive file (supports zip/tar/tar.gz/tgz) containing all the artifacts that reside under the specified
path (folder or repository root). Requires Enable Folder Download to be set.
## trace\_artifact\_retrieval( $path )
Takes path and traces artifact retrieval
## archive\_entry\_download( $path, $archive\_path )
Takes path and archive\_path, retrieves an archived resource from the specified archive destination.
## create\_directory( path => $path, properties => { key => \[ values \] } )
Takes path, properties then create a directory. Directory needs to end with a /, such as "/some\_dir/".
## deploy\_artifact( path => $path, properties => { key => \[ values \] }, file => $file )
Takes path on Artifactory, properties and filename then deploys the file. Note that properties are a hashref with
key-arrayref pairs, such as:
$prop = { key1 => ['a'], key2 => ['a', 'b'] }
## deploy\_artifact\_by\_checksum( path => $path, properties => { key => \[ values \] }, file => $file, sha1 => $sha1 )
Takes path, properties, filename and sha1 then deploys the file. Note that properties are a hashref with key-arrayref
pairs, such as:
$prop = { key1 => ['a'], key2 => ['a', 'b'] }
## deploy\_artifacts\_from\_archive( path => $path, file => $file )
Path is the path on Artifactory, file is path to local archive. Will deploy $file to $path.
## push\_a\_set\_of\_artifacts\_to\_bintray( descriptor => 'foo', gpgPassphrase => 'top\_secret', gpgSign => 'true' )
Push a set of artifacts to Bintray as a version. Uses a descriptor file (that must have 'bintray-info' in it's filename
and a .json extension) that was deployed to artifactory, the call accepts the full path to the descriptor as a
parameter.
## push\_docker\_tag\_to\_bintray( dockerImage => 'jfrog/ubuntu:latest', async => 'true', ... )
Push Docker tag to Bintray. Calculation can be synchronous (the default) or asynchronous. You will need to enter your
Bintray credentials, for more details, please refer to Entering your Bintray credentials.
## distribute\_artifact( publish => 'true', async => 'false' )
Deploys artifacts from Artifactory to Bintray, and creates an entry in the corresponding Artifactory distribution
repository specified
## file\_compliance\_info( $path )
Retrieves file compliance info of a given path.
## delete\_item( $path )
Delete $path on artifactory.
## copy\_item( from => $from, to => $to, dry => 1, suppressLayouts => 0/1, failFast => 0/1 )
Copies an artifact from $from to $to. Note that for this particular API call, the $from and $to must include repository
names as copy source and destination may be different repositories. You can also supply dry, suppressLayouts and
failFast values as specified in the documentation.
## move\_item( from => $from, to => $to, dry => 1, suppressLayouts => 0/1, failFast => 0/1 )
Moves an artifact from $from to $to. Note that for this particular API call, the $from and $to must include repository
names as copy source and destination may be different repositories. You can also supply dry, suppressLayouts and
failFast values as specified in the documentation.
## get\_repository\_replication\_configuration
Get repository replication configuration
## set\_repository\_replication\_configuration( $payload )
Set repository replication configuration
## update\_repository\_replication\_configuration( $payload )
Update repository replication configuration
## delete\_repository\_replication\_configuration
Delete repository replication configuration
## scheduled\_replication\_status
Gets scheduled replication status of a repository
## pull\_push\_replication( payload => $payload, path => $path )
Schedules immediate content replication between two Artifactory instances
## create\_or\_replace\_local\_multi\_push\_replication( $payload )
Creates or replaces a local multi-push replication configuration. Supported by local and local-cached repositories
## update\_local\_multi\_push\_replication( $payload )
Updates a local multi-push replication configuration. Supported by local and local-cached repositories
## delete\_local\_multi\_push\_replication( $url )
## save\_general\_configuration( $file )
Save the general configuration (artifactory.config.xml)
## update\_custom\_url\_base( $url )
Changes the Custom URL base
## license\_information
Retrieve information about the currently installed license
## install\_license( $licensekey )
Install new license key or change the current one
## ha\_license\_information
Retrieve information about the currently installed licenses in an HA cluster
## install\_ha\_cluster\_licenses( \[ { licenseKey => 'foobar' }, { licenseKey => 'barbaz' } \] )
Install a new license key(s) on an HA cluster
## delete\_ha\_cluster\_license( 'licenseHash1', 'licenseHash2' )
Deletes a license key from an HA cluster
## version\_and\_addons\_information
Retrieve information about the current Artifactory version, revision, and currently installed Add-ons
## get\_reverse\_proxy\_configuration
Retrieves the reverse proxy configuration
## update\_reverse\_proxy\_configuration(%data)
Updates the reverse proxy configuration
## get\_reverse\_proxy\_snippet
Gets the reverse proxy configuration snippet in text format
## start\_sha256\_migration\_task( "batchThreshold" => 10, etc etc )
Starts the SHA-256 migration process.
## stop\_sha256\_migration\_task( "sleepIntervalMillis" => 5000, etc etc )
Stops the SHA-256 migration process
# PLUGINS
## execute\_plugin\_code( $execution\_name, $params, $async )
Executes a named execution closure found in the executions section of a user plugin
## retrieve\_all\_available\_plugin\_info
Retrieves all available user plugin information (subject to the permissions of the provided credentials)
## retrieve\_plugin\_info\_of\_a\_certain\_type( $type )
Retrieves all available user plugin information (subject to the permissions of the provided credentials) of the
specified type
## retrieve\_build\_staging\_strategy( strategyName => 'strategy1', buildName => 'build1', %args )
Retrieves a build staging strategy defined by a user plugin
## execute\_build\_promotion( promotionName => 'promotion1', buildName => 'build1', buildNumber => 3, %args )
Executes a named promotion closure found in the promotions section of a user plugin
## reload\_plugins
Reloads user plugins if there are modifications since the last user plugins reload. Works regardless of the automatic
user plugins refresh interval
# IMPORT & EXPORT
## import\_repository\_content( path => 'foobar', repo => 'repo', metadata => 1, verbose => 0 )
Import one or more repositories
## import\_system\_settings\_example
Returned default Import Settings JSON
## full\_system\_import( importPath => '/import/path', includeMetadata => 'false' etc )
Import full system from a server local Artifactory export directory
## export\_system\_settings\_example
Returned default Export Settings JSON
## export\_system( exportPath => '/export/path', includeMetadata => 'true' etc )
Export full system to a server local directory
## ignore\_xray\_alert( $path )
Sets an alert to be ignored until next time the repository hosting the artifact about which the alert was issued, is scanned. Note that this endpoint does not
affect artifacts that are blocked because they have not been scanned at all.
## allow\_download\_of\_blocked\_artifacts( 'true'|'false' )
When a repository is configured to block downloads of artifacts, you may override that configuration (and allow download of blocked artifacts). Note that this
setting cannot override the blocking of unscanned artifacts.
## allow\_download\_when\_xray\_is\_unavailable( 'true'|'false' )
You may configure Artifactory to block downloads of artifacts when the connected Xray instance is unavailable. This endpoint lets you override that
configuration (and allow download of artifacts).
## create\_bundle( %hash of data structure )
Create a new support bundle
## list\_bundles
Lists previously created bundle currently stored in the system
( run in 0.818 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )