salt.modules.nexus

Module for fetching artifacts from Nexus 3.x

New in version 2018.3.0.

salt.modules.nexus.get_latest_release(nexus_url, repository, group_id, artifact_id, packaging, target_dir='/tmp', target_file=None, classifier=None, username=None, password=None)

Gets the latest release of the artifact

nexus_url

URL of nexus instance

repository

Release repository in nexus to retrieve artifact from, for example: libs-releases

group_id

Group Id of the artifact

artifact_id

Artifact Id of the artifact

packaging

Packaging type (jar,war,ear,etc)

target_dir

Target directory to download artifact to (default: /tmp)

target_file

Target file to download artifact to (by default it is target_dir/artifact_id-version.packaging)

classifier

Artifact classifier name (ex: sources,javadoc,etc). Optional parameter.

username

nexus username. Optional parameter.

password

nexus password. Optional parameter.

salt.modules.nexus.get_latest_snapshot(nexus_url, repository, group_id, artifact_id, packaging, target_dir='/tmp', target_file=None, classifier=None, username=None, password=None)

Gets latest snapshot of the given artifact

nexus_url

URL of nexus instance

repository

Snapshot repository in nexus to retrieve artifact from, for example: libs-snapshots

group_id

Group Id of the artifact

artifact_id

Artifact Id of the artifact

packaging

Packaging type (jar,war,ear,etc)

target_dir

Target directory to download artifact to (default: /tmp)

target_file

Target file to download artifact to (by default it is target_dir/artifact_id-snapshot_version.packaging)

classifier

Artifact classifier name (ex: sources,javadoc,etc). Optional parameter.

username

nexus username. Optional parameter.

password

nexus password. Optional parameter.

salt.modules.nexus.get_release(nexus_url, repository, group_id, artifact_id, packaging, version, target_dir='/tmp', target_file=None, classifier=None, username=None, password=None)

Gets the specified release of the artifact

nexus_url

URL of nexus instance

repository

Release repository in nexus to retrieve artifact from, for example: libs-releases

group_id

Group Id of the artifact

artifact_id

Artifact Id of the artifact

packaging

Packaging type (jar,war,ear,etc)

version

Version of the artifact

target_dir

Target directory to download artifact to (default: /tmp)

target_file

Target file to download artifact to (by default it is target_dir/artifact_id-version.packaging)

classifier

Artifact classifier name (ex: sources,javadoc,etc). Optional parameter.

username

nexus username. Optional parameter.

password

nexus password. Optional parameter.

salt.modules.nexus.get_snapshot(nexus_url, repository, group_id, artifact_id, packaging, version, snapshot_version=None, target_dir='/tmp', target_file=None, classifier=None, username=None, password=None)

Gets snapshot of the desired version of the artifact

nexus_url

URL of nexus instance

repository

Snapshot repository in nexus to retrieve artifact from, for example: libs-snapshots

group_id

Group Id of the artifact

artifact_id

Artifact Id of the artifact

packaging

Packaging type (jar,war,ear,etc)

version

Version of the artifact

target_dir

Target directory to download artifact to (default: /tmp)

target_file

Target file to download artifact to (by default it is target_dir/artifact_id-snapshot_version.packaging)

classifier

Artifact classifier name (ex: sources,javadoc,etc). Optional parameter.

username

nexus username. Optional parameter.

password

nexus password. Optional parameter.

salt.modules.nexus.get_snapshot_version_string(nexus_url, repository, group_id, artifact_id, packaging, version, classifier=None, username=None, password=None)

Gets the specific version string of a snapshot of the desired version of the artifact

nexus_url

URL of nexus instance

repository

Snapshot repository in nexus to retrieve artifact from, for example: libs-snapshots

group_id

Group Id of the artifact

artifact_id

Artifact Id of the artifact

packaging

Packaging type (jar,war,ear,etc)

version

Version of the artifact

classifier

Artifact classifier name (ex: sources,javadoc,etc). Optional parameter.

username

nexus username. Optional parameter.

password

nexus password. Optional parameter.

exception salt.modules.nexus.nexusError(value)