artifactory

Jenkins Artifactory plugin give Unexpected character when trying to upload large artifacts

怎甘沉沦 提交于 2020-01-07 02:59:11
问题 I use the Jenkins Artifactory plugin. Artifactory is installed beside Nginx server. Sometimes, Jenkins return an error on upload: [main] ERROR org.jfrog.build.extractor.maven.BuildInfoClientBuilder - Failed while reading the response from: PUT https://XXXX.XXX/XX-XXXXXXX-XXX/com/XXXX/XXXX/xxxxxxxx/xxxxxxx-api/1.0.0-SNAPSHOT/xxxxxxx-api-1.0.0-SNAPSHOT-jar-with-dependencies.jar;build.timestamp=1457104033410;build.name=xxxxxxx-build;build.number=75 HTTP/1.1 org.codehaus.jackson

JFrog CLI can't set properties on an artifact in JFrog Artifactory for the first property name and using SSH key examples for multi property search

橙三吉。 提交于 2020-01-06 14:34:58
问题 JFrog Artifactory: 5.8.4 Professional. JFrog CLI: 1.12.1 I'm using the official documentation of JFrog CLI to set few properties on an artifact that's available in Artifactory repo. NOTE: I don't want to use Artifactory AQL for now and trying to get this working using jfrog cli. I successfully configured the CLI client (the file ~/.jfrog/jfrog-cli.conf with entries for authentication using either username/password and with an API Key was created successfully). For setting properties on an

Docker pull from artifactory fails with credentials issue

一世执手 提交于 2020-01-06 05:30:23
问题 I have a Jenkins job on a remote environment where I use docker to pull down an image ( microsoft/aspnetcore-build/2.0.0 ) from a local Artifactory repo, but the docker pull fails with - 'unknown: Forbidden', yet other jobs sharing the same Artifactory credentials do not fail. The docker pull seems to proceed only when attempted from my local or any other machine, and then the job is kicked off manually on Jenkins. There are multiple retries for each image layer and subsequently it fails with

How to sort Artifactory package search result by version number with JFrog CLI?

試著忘記壹切 提交于 2020-01-05 05:42:07
问题 I need to get the latest version of a specific NuGet package in Artifactory . I use following JFrog CLI command to receive a list of all versions (later on with --limit=1 ), including JSON parsing with jq: jfrog rt s myRepo/Path/ --props "nuget.id=MyLib" --sort-by=name --sort-order=desc | jq -M -r ".[] | .props.\"nuget.version\" | .[]" The above example results in raw string output like this: 1.2.3.101 1.2.3.103 1.2.3.95 1.2.3.99 1.2.3.99-beta10 1.2.3.99-beta9 My target is to get an output

Jenkins Running on Websphere 8.5 causes plugin class load errors

杀马特。学长 韩版系。学妹 提交于 2020-01-04 20:28:25
问题 I am running Jenkins (1.552) on WebSphere 8.5 with Java 7 on RedHat Linux. I loaded the Artifactory plugin into Jenkins, but when I hit test connection, I receive the following error: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log After looking around, it appears that the Artifactory plugin was not compiled with the pluginFirstClassLoader option. It appears due

Upload to Artifactory using Java client

久未见 提交于 2020-01-04 05:23:06
问题 I use Artifactory Java client, and cant upload file to Artifactory. My code is very simple, taken from Artifactory Java Client test folder: artifactoryClient = ArtifactoryClient.create("localhost:8081", "admin", "admin"); InputStream content = new ByteArrayInputStream("I want to test my upload!".getBytes()); UploadableArtifact apAtrifact = artifactoryClient.repository("ext-snapshotlocal").upload("test/content.txt", content); File res = apAtrifact.doUpload(); I got error: 02:44:26.014 [main]

Sbt can't authorize in Artifactory

雨燕双飞 提交于 2020-01-03 15:54:48
问题 I'm behind corporate proxy server with domain authorization. There is Artifactory in the company and one should use domain credentials to login in it. When I try to run sbt in my Play! project folder I get next output: j:\Education\Scala\taxi\sources\branches\dev>sbt [info] Loading project definition from J:\Education\Scala\taxi\sources\branches\dev\project [info] Updating {file:/J:/Education/Scala/taxi/sources/branches/dev/project/}dev-build... [info] Resolving com.typesafe.play#sbt-plugin;2

artifactory npm repository unable to install

南楼画角 提交于 2020-01-03 02:21:08
问题 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

Gradle build is hanging without failure, DefaultFileLockManager acquiring and releasing lock on daemon addresses registry

会有一股神秘感。 提交于 2020-01-02 17:41:08
问题 I have several gradle-based projects and on all of them recently I've become unable to execute a ./gradlew clean build. Upon running this, the When I run with the --debug flag, I get stuck on "> Building 7% > :compileJava > Resolving dependencies ':compileClasspath'" and it never moves forward. When I ran with the --debug flag, I got this output regarding the DeafultFileLockManager acquiring and releasing a daemon lock, but this has been unhelpful. Here is the last bit of the gradle debug log

Hitting Java web service: curl or URLConnection

…衆ロ難τιáo~ 提交于 2020-01-02 05:28:41
问题 I am using a Java server that exposes a RESTful API on the following URL: http://localhost:8080/my-server/ The docs recommend using curl for submitting simple PUT requests (file uploads), and strongly recommend users to use the exact same arguments as provided in the examples. All of the examples look like this: curl -X PUT -f -u admin:password --data-binary @/absolute/path/file/to/upload/file.ext "http://localhost:8080/my-server/file.ext" This server will not work with FTP or any other