Questions tagged [jenkins-api]

Jenkins provides an API that allows you to access Jenkins via REST (see http://localhost:8080/api/ of a running Jenkins) to retrieve information or interact with Jenkins.

Jenkins provides an API that allows you to access Jenkins via REST (see http://localhost:8080/api/ of a running Jenkins) to retrieve information or interact with Jenkins.

181 questions
0
votes
1 answer

Jenkins Python API: get QueueItem by ID

Invoking a job in Jenkins via jenkinsapi returns a jenkinsapi.queue.QueueItem object that represents queued build. How can I get QueueItem object of an already queued build, given queue_id? I have tried: j = Jenkins(...) queue =…
0
votes
1 answer

Jenkins integration with RCP product

I have an RCP product with a view. In the view, i want to show all the jenkins builds configured and should be able to download builds, view logs, trigger builds. is there any API available?
Vel
  • 67
  • 11
0
votes
1 answer

Download Artifacts from Jenkins with cURL and GitHub Authentication

I'm attempting to download build artifacts from Jenkins via curl in a Bash script. However, I use GitHub for authentication, and even using the API key belonging to an Administrator user, I only get 403 errors and cannot successfully download. My…
Will
  • 24,082
  • 14
  • 97
  • 108
0
votes
1 answer

Editing builds in Jenkins through curl

I'm trying to make a simple change in my Jenkins build: edit a name of build's description to some other name. (Just for the sake of practice). I'm typing such a command in terminal: curl -i -X POST -d ""Description":"Some_other_description_name""…
aleksy.t
  • 267
  • 2
  • 18
0
votes
1 answer

Configure Ajax call for Server-side filtering of Data from Json Rest API

I use ajax jquery call to fetch data about tests from Jenkins test report's REST API. However, I want only those tests for which 'status' is not PASSED and FIXED. Now, can I configure my Ajax call such that this filtering is already done on the…
0
votes
1 answer

How to set custom build cause on invoke() in Python JenkinsAPI

I am trying to set custom causes for Jenkins builds using the jenkins api. The jenkins api has an invoke() method for invoking new builds that receives the cause parameter. # this is a jenkinsapi.Job method invoke(self, securitytoken=None,…
Inbar Rose
  • 41,843
  • 24
  • 85
  • 131
0
votes
1 answer

Don't see "X-Instance-Identity" (Jenkins instance id) in the response header

It is documented that each Jenkins instance has a unique id that we can retrieve by doing a GET. I am unable to find it. For e.g. do a GET on https://builds.apache.org/api/json and see the response headers
Aravind Yarram
  • 78,777
  • 46
  • 231
  • 327
0
votes
1 answer

Jenkins REST API to stop build using token

How to stop a build from Unix CLI using Jenkins REST API without specifying username/password credentials on command line, but using a build token?
SBA
  • 1
  • 2
0
votes
0 answers

Why is the jenkins api to create a new build, returning a Location header without a queue id?

So my api call to jenkins is something like: http://jenkins.com/job/jobName/build And in the header for location I'm getting things like: http://jenkins.com/job/jobName/ But no queue id or anything remotely identifying. Why is this? Currently…
Sojurn
  • 475
  • 6
  • 15
0
votes
1 answer

Jenkins APIs for getting the build custom labels

Is there any API available from jenkins to get all builds custom label for a specific job set by 'Set Build Name'? If it is achievable thru some programmatic scripts to get these custom build labels list for a job, please share the ideas if APIs are…
Srinivas
  • 321
  • 2
  • 5
  • 18
-1
votes
1 answer

Jenkins API to get queue size on job

I have a jenkins pipeline job which doesn't support concurrent build (as per requirement). so whenever multiple jobs are submitted, all jobs get queued. i want to know does jenkins provide any api which can give me number of jobs in queue for that…
deewreck
  • 113
  • 7
-1
votes
1 answer

How to get latest artifacts or files from Jenkins to local machine

I need to download using Jenkins cli or Jenkins api or any other rest API. I need to download artifact to local machine. How is this possible can any one explain
Lxmn
  • 1
-1
votes
1 answer

Jenkins Plugin to list total number of jobs, total number of build failure

Am looking for any Plugin from which I can pull the data which contains total number of jenkins jobs, total number of build failure happened periodically. Edit 1: Getting below error referring this method List Jenkins job build detials for last one…
-1
votes
1 answer

Starting a Jenkins Job using Javascript

Does anyone have an example of starting a jenkins job with auth and parameterized in Java Script? Its like a curl post but I am not sure how to do that exactly and I couldn't find any example passing username and token as well as parameters.
Jason
  • 2,246
  • 6
  • 34
  • 53
-1
votes
1 answer

Automating Jenkins pages with selenium

I want to build an automated system to find the flakiness in my test scripts, for which I need to get Pass percentage of, say n builds, of a given job. Finding the data through Xpaths doesn't work. Is there any API which can fetch me the same, or…
1 2 3
12
13