artifactory

Gradle artifactory plugin cannot resolve dependency on configuration phase

偶尔善良 提交于 2019-12-09 12:53:57
问题 I am trying to resolve dependency in configuration phase with artifactory gradle plugin. apply plugin: 'java' apply plugin: 'com.jfrog.artifactory' artifactory { contextUrl = "${artifactory_contextUrl}" ... resolve { repository { repoKey = 'repo' username = "${artifactory_user}" password = "${artifactory_password}" maven = true } } } dependencies { compile 'commons-lang:commons-lang:+' } task testCustomResolve { logger.quiet configurations.getByName('compile').singleFile.absolutePath } And it

Could not find metadata in local

流过昼夜 提交于 2019-12-09 04:38:58
问题 Locally on the machine i have an Artifactory installed with maven repositories, and i have a very simple .pom file for my project which points to it: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>MYGROUP</groupId> <artifactId>NAME</artifactId> <packaging>jar</packaging> <version>VERSION</version>

artifactory npm repository unable to install

若如初见. 提交于 2019-12-08 12:43:35
After I installed Artifactory V5.5.1 and with one-click npm setup. I added it to my npm registry, and use npm install something, gives me Cannot read property 'replace' of null . I checked the ~/.npm/npm/underscore/ directory, it was all empty (artifactory and npm is running behind nginx, and given an internal domain) I've tried npm v3 and v4, with both node v6 and v8 following are the logs of running npm i underscore 0 info it worked if it ends with ok 1 verbose cli [ '/Users/Joesonw/.nvm/versions/node/v8.4.0/bin/node', 1 verbose cli '/Users/Joesonw/.nvm/versions/node/v8.4.0/bin/npm', 1

Gradle - Download all version jars of a single groupID:artifactID from Artifactory

强颜欢笑 提交于 2019-12-08 10:56:23
问题 I use Gradle to build a project (Java). Gradle 2.3, Java7/8. Works great. To build a project, we define what all libraries we need during compile, test (testRuntime) and runtime stages and we define all those libraries in dependencies section like: dependencies { compile 'some_groupID:some_artifactID:some_version_x.y.z@ext_if_any' testRuntime 'SomeOtherOrSame_groupID:some_other_or_same_artifactID:some_version_x.y.z@ext_if_any' runtime 'SomeOtherOrSame_groupID:some_other_or_same_artifactID

How to publish custom artifacts to Artifactory from TeamCity?

て烟熏妆下的殇ゞ 提交于 2019-12-08 10:08:10
问题 I am using Artifactory and TeamCity and have a C++ project that generates binary packages (zip). Using Artifactory TeamCity plugin I am able to publish this artifact but the problem is that it does not end up in the correct tree (organization.module.version.artifact). Next to the zip file I have also an ivy.xml file that contains information about the artifact. <ivy-module version="2.0"> <info organisation="com.myorg" module="MyModule"/> <publications> <artifact name="MyModule" type="zip" ext

Artifactory Publish Android Library with Resources

依然范特西╮ 提交于 2019-12-08 03:22:01
问题 Problem: I am trying to create an Android Library which can be included in an application using: // Application's build.gradle compile 'com.mycompany:mylibrary:1.0.0' In my case, I am using Artifactory and I have gotten the above to work fine. The problem is when I try to run the application I a missing resources. The problem seems to be that my library has code that depends on resources which are not getting included in the jar published to Artifactory // Code in library, throws exception

Gradle publish attemps to upload RPM to Artifactory YUM repo twice, second time fails with 403

白昼怎懂夜的黑 提交于 2019-12-08 01:08:51
问题 I'm trying to publish an RPM artifact to a local YUM repo on Artifactory using gradle and the ivy-publish plugin. The issue I'm having is that the publish tasks appears to attempt to upload the artifact twice, and the second attempt fails (correctly) with a HTTP status code of 403. The artifactory user I authenticate with has deploy/cache privileges but not delete. My question is why is the publish task attempting to upload the artifact twice? I include my gradle configuration and an extract

Download artifacts archive from Artifactory

泄露秘密 提交于 2019-12-07 22:34:29
问题 I'm testing Artifactory 4.2.0 PRO. The really nice feature is the possibility to download an archive of all files produced by the build by executing, something like: curl -XPOST -u admin:password -H "Content-Type: application/json" http://localhost:8081/artifactory/api/archive/buildArtifacts -d ' { "buildName": "Vehicle Routing Problem", "buildNumber": "3", "archiveType": "zip" }' > build.zip However, I'm unable to find if there is a possibility to do the same (download archive) when

Upload multiple Gradle artifacts to Artifactory from Jenkins

末鹿安然 提交于 2019-12-07 21:03:11
问题 My environment uses Gradle for builds, Jenkins for CI, and Artifactory for a repository. I use the Artifactory plugin for Jenkins. Jenkins successfully builds my main jar file and uploads it to Artifactory. The build script has a second target for creating a distribution zip file under build/distributions. Jenkins creates the zip file successfully, but I don't know how to tell it to upload that artifact to Artifactory, too. Is this something I should be able to specify in the Jenkins

What token endpoint does JFrog Artifactory use for its Docker registries?

纵然是瞬间 提交于 2019-12-07 17:21:56
问题 I'm trying to write code that can essentially do a docker inspect on images published to a private JFrog Artifactory, without having to actually pull the images themselves. I've been using a guide called Inspecting Docker images without pull for a breakdown of the API calls. The guide uses the public Docker Hub registry as its base - not Artifactory - which is a little different. Basically, there are 3 API calls that need to be made: First get a token Then get a "digest" for a given image/tag