Class Utils
java.lang.Object
io.jenkins.plugins.artifactory_artifacts.Utils
-
Method Summary
Modifier and TypeMethodDescriptionReturn the artifactory config or null if not configuredstatic com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentialsGet the credentials or null if not configuredstatic com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentialsstatic com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentialsgetCredentials(String credentialsId) static StringgetFilePath(String key, String path) Get the path with the prefixstatic StringGet the path with the prefixstatic StringGet the URL of the artifactstatic StringstripTrailingSlash(String key) Strip the trailing slash
-
Method Details
-
getArtifactConfig
Return the artifactory config or null if not configured- Returns:
- the artifactory config or null if not configured
-
getCredentials
@Nullable public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getCredentials()Get the credentials or null if not configured- Returns:
- the credentials or null if not configured
-
getCredentials
public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getCredentials(String credentialsId) -
getCredentials
public static com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials getCredentials(ArtifactoryGenericArtifactConfig config) -
getUrl
-
stripTrailingSlash
-
getFilePath
-
getPath
-