Class DirectArtifactURLBuilder
java.lang.Object
org.jenkinsci.plugins.maven_artifact_choicelistprovider.nexus.AbstractArtifactURLBuilder
org.jenkinsci.plugins.maven_artifact_choicelistprovider.nexus.DirectArtifactURLBuilder
- All Implemented Interfaces:
IArtifactURLBuilder
Provides functionality to retrieve an artifact as a direct link from the repository, such as:
https://server/content/repositories/repositoryId/com/thegroup/id/artifactId/version/artifactId-42.tar.gz
Limitations: This implementation does not work for snapshots.
- Author:
- stephan.watermeyer, Diebold Nixdorf
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jenkinsci.plugins.maven_artifact_choicelistprovider.nexus.AbstractArtifactURLBuilder
build, getArtifactId, getClassifier, getGroupId, getNexusURL, getPackaging, getRepositoryId, getVersion, setArtifactId, setClassifier, setGroupId, setNexusURL, setPackaging, setRepositoryId, setVersion
-
Constructor Details
-
DirectArtifactURLBuilder
public DirectArtifactURLBuilder()
-
-
Method Details
-
build
Description copied from interface:IArtifactURLBuilderBased on the given details the URL for the artifact is created.- Parameters:
pOnlyBaseURL-trueif only the URI should be returned.- Returns:
- the URL or the folder where the artifact can be found or downloaded.
-