Skip to main content
DevOps icon showing cogs

This post is from the XebiaLabs blog and has not been updated since the original publish date.

Last Updated May 03, 2015 — DevOps Expert

Jython Console extension with XL Release 4.6.0


With XL Release 4.6.0, custom REST Endpoints are now supported by XL Release, just like with XL Deploy. Keeping that in mind, some of the existing extensions that have custom REST endpoints can be used along with XL Release now. One of them is the Jytutor extension that can be used to experiment with Jython scripting on the server backend. This is especially useful as XL Release currently does not have a Command Line Interface. Jytutor also has a UI interface which is accessible through the Jytutor menu option in XL Deploy but UI Extensions are not available in XL Release till now. But we can still access the UI by referring it directly. Here's how to go for it

  1. Download the Jytutor extension referring to the Jytutor Blog or from the xebialabs-community site
  2. Shutdown your XL Release server and drop the extension jar file under XLR_HOME/plugins folder
  3. Restart the server and log back in
  4. You'll have to use Firefox for this one since the authentication information is not being passed on to the jytutor UI as UI extensions are yet to come in XL Release.
  5. In Firefox, download an add-on can Modify Headers
  6. Restart Firefox, Open modify Headers from toolbar. Now we'll add an authorization header.
    1. In modify headers menu, select Add action
    2. Type header name as Authorization
    3. For value, we'll use Basic authentication. For that generate a 64bit encoded value for your <username>:<password> e.g. for admin:admin, it will be YWRtaW46YWRtaW4=
    4. Put the value of header as Basic YWRtaW46YWRtaW4=
    5. Start the modify headers to push headers in requests
  7. After that open another tab and open  http://localhost:5516/static/4.6.0/web/jytutor-plugin/tutor.html
  8. You can now start typing any Jython/Python code snippet and submit to get it evaluated using XL Release server side scripting engine. e.g. type  print "hello xlr"
  9. You can also play with XL Release Jython API
You can also expose all the jython context in XL Release server runtime using the code snippet provided XL Deploy Variables Demystified: Part 2Enjoy!!

More from the Blog

View more
Ascension Launch Banner
Apr 26, 2022

Get ready for peak performance with’s newest AI-Powered DevOps Platform Ascension Release

Today, is excited to announce our latest AI-Powered DevOps ...
Read More
Jan 24, 2022 Value Stream Delivery for SAFe®: The key to amazing business outcomes

The Scaled Agile Framework (SAFe) is the world’s leading framework for ...
Read More
Dec 09, 2021

How SaaS and cloud-based solutions helped the U.S. Department of Veterans Affairs achieve digital transformation

Modernizing legacy systems was an ongoing goal for the U.S. Department ...
Read More
Nov 29, 2021

Increase velocity and reduce risk with AI and machine learning

Artificial Intelligence (AI) and machine learning (ML) have proven use ...
Read More
Contact Us