Comments (4)
@phrinx ,met same problem, cannot upload file to a host need access via proxy. using com.jfrog.artifactory version 4.4.10, is there anyone can help?
from project-examples.
Solution is to set the proxy to the http client.... modify the createArtifactory method to set http proxy as below -
private static Artifactory createArtifactory(String username, String password, String artifactoryUrl) {
if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password) || StringUtils.isEmpty(artifactoryUrl)) {
throw new IllegalArgumentException("Arguments passed to createArtifactory are not valid");
}
ProxyConfig proxy = new ProxyConfig(,,"","","");
return ArtifactoryClientBuilder.create().setUrl(artifactoryUrl).setUsername(username).setPassword(password).setProxy(proxy)
.build();
}
from project-examples.
My problem resolved by upgrade jfrog artifactory client to latest version, eg
compile group: 'org.jfrog.artifactory.client', name: 'artifactory-java-client-services', version: '2.6.2'
from project-examples.
@JuliaLei Do we need to build our own plugin with above line? Please help, i am facing the same issue
from project-examples.
Related Issues (20)
- use jenkins pipeline upload files timeout
- Gradle plugin: build promotion
- Dotnet artifactory creation HOT 6
- xray not showing any issue for Android APK artifact
- Jenkins Scripted Pipeline (maven-example) leads to errors. It could be minimalistic. HOT 2
- Unable to upload artifacts
- Unable to upload artifacts HOT 2
- springboot update,maven deploy artifactory problem HOT 5
- The Build Object name is not getting updated as expected in Artifactory while using the Artifactory Maven plugin.
- Support for downloading Gradle from Artifactory HOT 1
- Question of how to modify properites of an artifact
- kts-publish example: PublishBuildInfo HOT 2
- Unable to Publish build-info to Artifactory using JFrog CLI HOT 1
- Can we have documentation with example for terraform module usage published with Artifactory ? HOT 1
- Could not GET 'https://artifactoryexample.com/ZAID/TEST/v1.0.0/TEST-v1.0.0.jar'. Received status code 401 from server:
- Artifactory Gradle plugin uses deprecated Gradle API HOT 1
- fat-manifest-example does not work
- How to building with the mavend ?
- Unable to pull GO package after publishing HOT 2
- RT_TRIGGER_URL causes failure in pipeline if build triggered manually
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from project-examples.