Comments (5)
I would assume just curl http://localhost:10090/job/javaee/ws/pom.xml
would get the pom file from the workspace...
from java-client-api.
@khmarbaise , curl is an external tool to download it. I want to know if any way in jenkins-client could download file by coding
from java-client-api.
It would be suboptimal to add a HTTP file download to jenkins-client when
excellent automated tools exist elsewhere.
On Sun, Nov 29, 2015 at 7:28 AM, Yu Zhou [email protected] wrote:
@khmarbaise https://github.com/khmarbaise , curl is an external tool to
download it. I want to know if any way in jenkins-client could download
file by coding—
Reply to this email directly or view it on GitHub
#119 (comment)
.
from java-client-api.
@khmarbaise @pnathan I have found a workaround. In JenkinsHttpClient class, there is a method 'getFile' which could be used to download a file. But the client is a private member of JenkinsServer, you have to get the instance by reflect. Can we expose a GET method in JenkinsServer to get the client when user need it for doing some more advanced things?
from java-client-api.
I thinks there is no reason not to do such a thing in particular if it helps you...to make things easier...
from java-client-api.
Related Issues (20)
- java-client-api can not build job with jenkins version over 2.235.2? HOT 3
- com.offbytwo.jenkins.model.Job.build --> HttpResponseException: Bad Request HOT 1
- Necessary crumb support after Jenkins 2.176.2+
- build.getConsoleOutputText(0);调用显示403错误,没有相关api调用设置crumb为true? HOT 2
- jenkinsServer.getJob("test-job").build(param,true) response : Server Error
- All the api will return 403 or 404 using this client
- inputstream and ByteArrayOutputStream should be close when we finished request in getFileFromWorkspace HOT 2
- when we use JenkinsHttpClient, we'd better need socket timeout for unstable net HOT 2
- getBuildByNumber() returns null when build exists HOT 4
- JobWithDetails.getAllBuilds() throws Exception with 404 HOT 2
- org.apache.http.client.HttpResponseException: Not Allowed
- Method deleteView is missing
- QueueId is missing when querying AllBuilds HOT 2
- 调用getJobs方法报错404
- HttpResponseException (404) calling job.build multiple times with the same parameters.
- JenkinsHttpClient post_form_with_result character set
- create job by xml failure,error: 301 Moved Permanently
- Get existing parameters of a job
- Caused by: org.apache.http.HttpException: No credentials for preemptive authentication
- jdk17 + springboot3 use jenkins-client-0.3.8 create jenkins bean fail. throw java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
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 java-client-api.