Skip to main content
@Since 11.2.0.0 This operation retrieves an artifact from Nexus Repository Manager using Maven GAV coordinates (Group ID, Artifact ID, and Version) via a Nexus Account, and stores it in the FlexDeploy artifact repository for use in a FlexDeploy workflow. Unlike retrieveArtifact2, you do not need to supply a full remote path; FlexDeploy builds the standard Maven repository path under the selected repository. The downloaded file name is \{artifactId\}-\{version\}[-classifier].\{packaging\} using the literal version string (including -SNAPSHOT). Nexus may resolve SNAPSHOT via metadata on GET; for a unique timestamped snapshot, pass that version string.

Nexus Account Properties

Property NameProperty CodeRequiredDescription
Nexus URLFDNEXUSACCT_URLYesThe URL of Nexus Repository Manager (e.g. http://[host]:[port]).
Nexus UsernameFDNEXUSACCT_USERNAMEYesUser to connect to Nexus as.
Nexus PasswordFDNEXUSACCT_PASSWORDYesThe password for the Nexus User.

Inputs

Input NameInput CodeRequiredDescription
Nexus AccountFDNEXUS_INP_NEXUS_ACCOUNT_CODEYesThe Nexus account with all the required properties like Instance Url, Username, and Password for running Nexus Instance. Configure this under Topology - Integrations - Artifact Repository.
Nexus VersionFDNEXUS_VERSIONYesThe version of Nexus Repository Manager being used. (Nexus 3.X or Nexus 2.X)
Nexus RepositoryFDNEXUS_REPOSITORYYesIdentifier of the Nexus repository. Repository ID for Nexus 2, repository name for Nexus 3. - If using Nexus 2, then repository id is in URL after FDNEXUS_URL/nexus/content/repositories/FDNEXUS_REPOSITORY. - If using Nexus 3, then repository name is in URL after FDNEXUS_URL/repository/FDNEXUS_REPOSITORY.
Group IDFDNEXUS_GROUP_IDYes@Since 11.2.0.0 Maven groupId of the artifact (e.g. com.example).
Artifact IDFDNEXUS_ARTIFACT_IDYes@Since 11.2.0.0 Maven artifactId of the artifact.
Artifact VersionFDNEXUS_ARTIFACT_VERSIONYes@Since 11.2.0.0 Maven version of the artifact to retrieve.
PackagingFDNEXUS_PACKAGINGNo@Since 11.2.0.0 Maven packaging/extension (e.g. jar, war, pom). Defaults to jar.
ClassifierFDNEXUS_CLASSIFIERNo@Since 11.2.0.0 Optional Maven classifier (e.g. sources, javadoc).
Download To DirectoryFDNEXUS_DOWNLOAD_TO_DIRNoSpecify the Path to which the remote Artifact will be downloaded. If no inputs given, the default Artifacts dir will be used.

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.