> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# retrieveArtifactsGAV2 (Artifactory)

> This operation provides an easy way to get an artifact from Artifactory using Maven coordinates: GroupId, ArtifactId, Version & Classifier. Then store

This operation provides an easy way to get an artifact from Artifactory using Maven coordinates: GroupId, ArtifactId, Version & Classifier. Then store it in the FlexDeploy artifact repository to use in a FlexDeploy workflow.

# Artifactory Account Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Artifactory URL</td><td>`FDARTIFACCT_URL`</td><td>Yes</td><td>The URL of Artifactory Repository Manager (e.g. `http://[host]:[port]`).</td></tr><tr><td>Artifactory Username</td><td>`FDARTIFACCT_USERNAME`</td><td>Yes</td><td>User to connect to Artifactory as.</td></tr><tr><td>Artifactory Password</td><td>`FDARTIFACCT_PASSWORD`</td><td>Yes</td><td>The password for the Artifactory User.</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Artifactory Account</td><td>`FDARTIF_ARTIFACT_REPOSITORY_ACCOUNT_CODE`</td><td>Yes</td><td>The Artifactory account with all the required properties like Instance Url, Username, and Password for running Artifactory Instance. Configure this under Topology - Integrations - CI Server.</td></tr><tr><td>Group ID</td><td>`FDARTIF_GROUP_ID`</td><td>Yes</td><td /></tr><tr><td>Artifact ID</td><td>`FDARTIF_ARTIFACT_ID`</td><td>Yes</td><td>ID of the artifact.</td></tr><tr><td>Version</td><td>`FDARTIF_VERSION`</td><td>No</td><td>Version of the artifact. If no version is set the latest version will be retrieved.Use the version in the pom file. Sometimes Artifactory will show a different version on the General → Dependency Declaration view when a file is selected. </td></tr><tr><td>Download To Directory</td><td>`FDARTIF_DOWNLOAD_TO_DIR`</td><td>No</td><td>Specify the Path to store the Artifact downloaded from Artifactory. If left blank, FlexDeploy's default Artifacts directory will be used.</td></tr><tr><td>Repository ID</td><td>`FDARTIF_REPO_ID`</td><td>No</td><td>ID of the repository. Will help narrow down the search if multiple repositories have the same artifact ID, group ID, and version.</td></tr><tr><td>Classifier</td><td>`FDARTIF_CLASSIFIER`</td><td>No</td><td>Classifier of the artifact.</td></tr></tbody></table>

# Artifacts

This operation produces artifacts that will be stored in the artifacts repository.

# Endpoint Selection

This operation will select all available endpoints associated to the target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
