Jenkins api to download ws files






















Collectives on Stack Overflow. Learn more. Downloading build files from Jenkins Ask Question. Asked 5 years, 10 months ago. Active 5 years, 10 months ago. Viewed 1k times. Does google accounts cannot be authenticated this way? Is there a better approach? Improve this question. Add a comment. Active Oldest Votes. Improve this answer. Bruno Lavit Bruno Lavit 9, 2 2 gold badges 28 28 silver badges 38 38 bronze badges.

Thanks for your reply. The text was updated successfully, but these errors were encountered:. Sorry, something went wrong. I want to know if any way in jenkins-client could download file by coding. It would be suboptimal to add a HTTP file download to jenkins-client when excellent automated tools exist elsewhere. 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? I thinks there is no reason not to do such a thing in particular if it helps you Skip to content. Depth control solves this problem. Depth control is fundamentally connected to the Jenkins data model.

The data model that Jenkins maintains internally can be thought of as a big tree structure, and when you make a remote API call, you are getting a small subtree of it. The subtree is rooted at the object for which you made a remote API call, and the sub-tree is cut beyond certain depth to avoid returning too much data.

You can adjust this cut-off behavior by specifying the depth query parameter. When you specify a positive depthvalue, the subtree cut-off happens that much later. Because of the algorithm, this works in such a way that the data returned by a bigger depth value includes all the data returned by smaller depth value. It provides a higher-level API containing a number of convenience functions.

Services offered currently include:. Services currently offered include:. Creating jobs by sending xml file or by specifying params as options with more customization options including source control, notifications, etc.

Building jobs with params , stopping builds, querying details of recent builds, obtaining build params, etc. Chaining jobs i. Quiet down, cancel quiet down, safe restart, force restart, and wait till Jenkins becomes available after a restart. The project source code is at here. It is built using the jclouds toolkit and can easily be extended to support more REST endpoints.



0コメント

  • 1000 / 1000