Artifactory-Client
view release on metacpan or search on metacpan
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.
Calculates/caches a Maven index for the specified repositories
## calculate\_maven\_metadata( $path )
Calculates Maven metadata on the specified path (local repositories only)
## calculate\_debian\_repository\_metadata( async => 0/1 )
Calculates/recalculates the Packages and Release metadata for this repository,based on the Debian packages in it.
Calculation can be synchronous (the default) or asynchronous.
## calculate\_cached\_remote\_debian\_repository\_coordinates( 'repokey' )
Calculates/recalculates the Debian packages coordinates
## calculate\_opkg\_repository\_metadata( async => 0/1, writeProps => 1 )
Calculates/recalculates the Packages and Release metadata for this repository,based on the ipk packages in it (in each
feed location).
lib/Artifactory/Client.pm view on Meta::CPAN
my ( $self, %args ) = @_;
my $url = $self->_api_url() . "/bintray/push";
my $params = $self->_stringify_hash( '&', %args );
$url .= "?" . $params if ($params);
return $self->post($url);
}
=head2 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.
=cut
sub push_docker_tag_to_bintray {
my ( $self, %args ) = @_;
my $url = $self->_api_url() . '/bintray/docker/push/' . $self->repository();
return $self->post(
$url,
lib/Artifactory/Client.pm view on Meta::CPAN
sub calculate_maven_metadata {
my ( $self, $path ) = @_;
$path = $self->_merge_repo_and_path($path);
my $url = $self->_api_url() . "/maven/calculateMetadata/$path";
return $self->post($url);
}
=head2 calculate_debian_repository_metadata( async => 0/1 )
Calculates/recalculates the Packages and Release metadata for this repository,based on the Debian packages in it.
Calculation can be synchronous (the default) or asynchronous.
=cut
sub calculate_debian_repository_metadata {
my ( $self, %args ) = @_;
my $repository = $args{repository} || $self->repository();
return $self->_handle_repository_reindex( "/deb/reindex/$repository", %args );
}
=head2 calculate_cached_remote_debian_repository_coordinates( 'repokey' )
( run in 0.431 second using v1.01-cache-2.11-cpan-0d8aa00de5b )