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
1
vote
0 answers

Jenkins API - buildWithParameters and fileParameter

so we're trying to use the Jenkins API to invoke a build with a file parameter. Basically we're trying to give it the files to build in ZIP format. We have a ZIP plugin installed to unzip the build file, but we can't get that far. Basically we're…
1
vote
1 answer

Jenkins remove project via API via curl

Good Morning, We have an application which is in charge of handeling deployment, before sending the project in mockup, we are using jenkins to run some test. On jenkins, we can create the project and run build without any problem using curl. But…
LinChan
  • 417
  • 1
  • 5
  • 17
1
vote
1 answer

How to upload my custom Jenkins Plugin to a Jenkins Server using a Python Script

I need to test my custom Jenkins Plug-in my-plugin.hpi to a set of Jenkins Servers. How best can I do it using say a Python Script?
suryakrupa
  • 3,852
  • 1
  • 25
  • 34
1
vote
1 answer

How to install Jenkins plugins through PluginManager API REST

After getting the crumb ID and store it in a variable, I try to launch the following command: curl -X POST -d '' --header 'Content-Type: text/xml'…
David M.
  • 131
  • 1
  • 12
1
vote
1 answer

Is there a standard way of interacting with Jenkins inside Vim?

At work we have recently started using Jenkins. I would like to be able to see the basic status of builds from within Vim. Is there a typical or standard way of doing this? Currently i am using my own script which interacts with the jenkins API but…
axwr
  • 2,118
  • 1
  • 16
  • 29
1
vote
1 answer

Error while updating Jenkins job config using Rest API

I am trying to change the configuration of a job using Jenkins' rest API using my java code, but it is not able to connect to Jenkins url. Please, suggest me the changes so that I can update my job without restarting the Jenkins. I am using Jenkins…
Kruti Vyas
  • 63
  • 1
  • 7
1
vote
1 answer

How to get and print Jenkins console output in Python script

I am trying to trigger a jenkins job using python script with jenkinsapi module. import jenkinsapi from jenkinsapi.jenkins import Jenkins J = Jenkins('http://localhost:8080') J.build_job('testjob') I want to print console output from jenkins job…
user5154816
1
vote
1 answer

Call to JenkinsAPI(https) just hangs

My code is given below from jenkinsapi.jenkins import Jenkins def get_server_instance(): jenkins_url = 'https://:' print "Hello" server = Jenkins(jenkins_url, username = 'foouser', password = 'foopassword') …
IndrajitDatta
  • 205
  • 4
  • 13
1
vote
2 answers

Know which build step is failed through api

I am trying to find out the details of a build through API. I am using below to get the specific result. http://localhost:8080/job/test/lastBuild/api/json?pretty=true Now when the build is failed, I am just getting the status of the build. I want…
user987709
  • 13
  • 1
  • 4
1
vote
1 answer

How to get test history

I have many builds with failed tests. I learn one test and want to find last build, where this test was succesfully. How I can find this build or how I can get test results history?
synacker
  • 1,722
  • 13
  • 32
1
vote
1 answer

Modifying Jenkins Description for a build

I would like to remotely change a Jenkins build description. I have my script all set and ready except for one tiny problem: Multiple line descriptions. I am using the REST API and JSON in Jenkins to download the old…
David W.
  • 105,218
  • 39
  • 216
  • 337
0
votes
1 answer

Manage "secret file" Jenkins credentials using XML files

I would like to manage the "secret file" Jenkins credentials using XML files as described in this thread's comment, but the resulting credential is not readable by my pipeline. I create the XML file as…
0
votes
0 answers

Jenkins rest api to fetch list of nodes, plugins and version?

I'm trying to build out some documentation on our Jenkins infrastructure in confluence and I'd like to be able to pull it in via REST api. First of all, I'd like to be able to fetch in a list of agents. I found this answer but the output doesn't…
Alistair Hardy
  • 397
  • 1
  • 4
  • 16
0
votes
0 answers

How to retrieve choice parameter values from jenkins build with jenkins remote api?

Hi how can retrieve or extract specific information from jenkins build? I am using Jenkins remote api (xml or json) And I want to extract values of choice parameters from build. How can I do that? Can anyone please please help me with this.
0
votes
1 answer

How to create parameters in Jenkins without Jenkins UI

I am using Jenkins to run my automation test. But now my organisation is migrating to new Jenkins, due to which I will not be having access to some of the settings and options. Like, configure option is not there in the jenkins. So in that case, how…