> ## 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.

# uploadArtifact (Nexus)

> This operation provides an easy way to upload an artifact to Nexus Repository Manager from FlexDeploy artifact repository or any current file system d

This operation provides an easy way to upload an artifact to Nexus Repository Manager from FlexDeploy artifact repository or any current file system directory. This can be used in FlexDeploy build workflows to upload the generated Project Build to Nexus repository if required.

# 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>Nexus Username</td><td>`FDNEXUS_USERNAME`</td><td>Yes</td><td>User to connect to Nexus as.</td></tr><tr><td>Nexus Password</td><td>`FDNEXUS_PASSWORD`</td><td>Yes</td><td>The password for the Nexus User.</td></tr><tr><td>Nexus URL</td><td>`FDNEXUS_URL`</td><td>Yes</td><td>The URL of Nexus Repository Manager (e.g. `http://[host]:[port]`).</td></tr><tr><td>Nexus Version</td><td>`FDNEXUS_VERSION`</td><td>Yes</td><td>The version of Nexus Repository Manager being used. (Nexus 3.X or Nexus 2.X)</td></tr><tr><td>Nexus Path</td><td>`FDNEXUS_PATH`</td><td>Yes</td><td>Path to upload an artifact in Nexus. (e.g. releases/artifactId/1.1/)</td></tr><tr><td>Nexus Repository</td><td>`FDNEXUS_REPOSITORY`</td><td>Yes</td><td>Identifier of the Nexus repository. Repository ID for Nexus 2, repository name for Nexus 3.<ul><li>If using Nexus 2, then repository id is in URL after *FDNEXUS\_URL/nexus/content/repositories/FDNEXUS\_REPOSITORY*.</li><li>If using Nexus 3, then repository name is in URL after *FDNEXUS\_URL/repository/FDNEXUS\_REPOSITORY*.</li></ul></td></tr><tr><td>Upload From Directory</td><td>`FDNEXUS_UPLOAD_FROM_DIR`</td><td>No</td><td>Specify the Path from which the Artifact can be uploaded to Nexus. If no inputs given, the default Artifacts dir will be used.</td></tr></tbody></table>

# Artifacts

This operation produces artifacts that will be stored in the artifact's 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.
