Welcome!

XebiaLabs | Continuous Delivery and Agile DevOps Tools

XebiaLabs Blog

Subscribe to XebiaLabs Blog: eMailAlertsEmail Alerts
Get XebiaLabs Blog via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Related Topics: Microservices Journal, DevOps Journal

Blog Feed Post

Learn about Jython API By @XebiaLabs | @DevOpsSummit [#DevOps]

There is no quick way to learn Jython API but to experiment with it

Learn about Jython API

There is no quick way to learn Jython API but to experiment with it. The easiest way is to start with Jytutor extension for XL Deploy.

Now you can also use the code snippet for exposing jython/python context in XL Deploy environment by running it directly in Jytutor

Here’s how you can go ahead with that

  1. Download the Jytutor extension referring to the Jytutor Blog or from the following link https://github.com/xebialabs-community/xld-jytutor-plugin/releases
  2. Shutdown your XL Deploy server and drop the extension jar file under XLD_HOME/plugins folder
  3. Restart the server and log back in
  4. You should be able to see Jytutor as the last option in top menu. Click to open that
  5. Now refer to the code snippet in XL Deploy Variables Demystified : Part 2
  6. Once you copy the snippet in Commands section and submit it, this is how it looks.

The Standard output  box shows all the complex objects and services that are exposed in the jython context.  You can use this to type your complete script for xl-rules and custom-rest-endpoints , test it without rebuilding/restarting server and then put in your code.

Enjoy!!

The post Learn about Jython API appeared first on XebiaLabs.

Read the original blog entry...

More Stories By XebiaLabs Blog

XebiaLabs is the technology leader for automation software for DevOps and Continuous Delivery. It focuses on helping companies accelerate the delivery of new software in the most efficient manner. Its products are simple to use, quick to implement, and provide robust enterprise technology.