Search in sources :

Example 21 with ArtifactoryManager

use of org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager in project build-info by JFrogDev.

the class NpmBuildInfoExtractor method preparePrerequisites.

private void preparePrerequisites(String resolutionRepository, Path workingDir) throws IOException {
    try (ArtifactoryManager artifactoryManager = artifactoryManagerBuilder.build()) {
        setNpmAuth(artifactoryManager);
        setRegistryUrl(artifactoryManager, resolutionRepository);
        setNpmProxy(artifactoryManager);
    }
    readPackageInfoFromPackageJson(workingDir);
    backupProjectNpmrc(workingDir);
}
Also used : ArtifactoryManager(org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager)

Aggregations

ArtifactoryManager (org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager)21 IOException (java.io.IOException)11 File (java.io.File)3 ArtifactoryClientConfiguration (org.jfrog.build.extractor.clientConfiguration.ArtifactoryClientConfiguration)3 DeployDetails (org.jfrog.build.extractor.clientConfiguration.deploy.DeployDetails)3 ModuleBuilder (org.jfrog.build.extractor.builder.ModuleBuilder)2 BuildInfo (org.jfrog.build.extractor.ci.BuildInfo)2 IncludeExcludePatterns (org.jfrog.build.extractor.clientConfiguration.IncludeExcludePatterns)2 ConsumerRunnableBase (org.jfrog.build.extractor.producerConsumer.ConsumerRunnableBase)2 ProducerConsumerExecutor (org.jfrog.build.extractor.producerConsumer.ProducerConsumerExecutor)2 ProducerRunnableBase (org.jfrog.build.extractor.producerConsumer.ProducerRunnableBase)2 Serializable (java.io.Serializable)1 java.util (java.util)1 Date (java.util.Date)1 Map (java.util.Map)1 Collectors (java.util.stream.Collectors)1 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)1 StringUtils (org.apache.commons.lang3.StringUtils)1 Pair (org.apache.commons.lang3.tuple.Pair)1 Header (org.apache.http.Header)1