1 / 15

Connect your tools to Jenkins Using the basic Jenkins API’s

Jenkins User Conference. Israel, June 6 2013 # jenkinsconf. Connect your tools to Jenkins Using the basic Jenkins API’s. Nir Koren DevOps & Integration Lead, SAP Labs Israel June 2013. API connection.

brone
Download Presentation

Connect your tools to Jenkins Using the basic Jenkins API’s

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Jenkins User Conference Israel, June 6 2013 #jenkinsconf Connect your tools to JenkinsUsing the basic Jenkins API’s Nir Koren DevOps & Integration Lead, SAP Labs Israel June 2013

  2. API connection Jenkins provides several ways for getting and triggering actions directly on a Jenkins server. We will review some methods which helps to connect your tools and scripts to Jenkins CODE SCRIPTS REPORTS

  3. CLI (Command-Line Interface) Built-in command line client. JAVA Archive Jenkins release dependent: http://<HOST>/jenkins/cli Can do almost everything in Jenkins via CMD / SHELL. Extendable

  4. CLI DEMO

  5. CLI USAGE Scripts and Automation “Jenkins as a Service” Unique – short time cases

  6. Remote access API Machine-consumableRemote Access API. AREST-likestyle. XML…/api/xml JSON…/api/json PYTHON

  7. XML API Works in almost any action by adding “/api/xml”

  8. XML API cont. Can specify xPath to control the results. Example: /api/xml?xpath=/*/*[0] Controlling the amount of data you fetch. Example: api/xml?depth=1 Parsed by any technology to your tools / Apps

  9. JSON API Works in almost any action by adding “/api/json”

  10. Additional Actions Create and Copy jobs Restart Trigger a new build http://<HOST:PORT>/jenkins/createItem http://<HOST:PORT>/jenkins/restart

  11. API DEMO

  12. Usages in Jenkins API Development live dashboard

  13. Usages in Jenkins API Nice HTML mails

  14. iPhone / Android / Desktop custom applications

  15. Thank you! Nir Koren @KorenNir DevOps & Integration Lead SAP Labs Israel | nir.koren@sap.com

More Related