Artifactory-Client
view release on metacpan or search on metacpan
## 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.
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
lib/Artifactory/Client.pm view on Meta::CPAN
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,
"Content-Type" => 'application/json',
lib/Artifactory/Client.pm view on Meta::CPAN
? $self->_api_url() . "/plugins/execute/$execution_name?params="
: $self->_api_url() . "/plugins/execute/$execution_name";
$url = $url . $self->_attach_properties( properties => $params );
$url .= "&" . $self->_stringify_hash( '&', %{$async} ) if ($async);
return $self->post($url);
}
=head2 retrieve_all_available_plugin_info
Retrieves all available user plugin information (subject to the permissions of the provided credentials)
=cut
sub retrieve_all_available_plugin_info {
my $self = shift;
return $self->_handle_plugins();
}
=head2 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
=cut
sub retrieve_plugin_info_of_a_certain_type {
my ( $self, $type ) = @_;
return $self->_handle_plugins($type);
}
=head2 retrieve_build_staging_strategy( strategyName => 'strategy1', buildName => 'build1', %args )
( run in 0.256 second using v1.01-cache-2.11-cpan-4d50c553e7e )