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 Sep 21, 2015 — DevOps Expert

What We Learned from Fully Automating our Own Release Process with XL Release


At XebiaLabs we build products to help companies visualize, automate and control the process of releasing their software. Of course, we have our own release process too – and like pretty much everyone’s release process, there is room for improvement. Naturally, we turned to our own tools to make that happen. In this post I am going to explain how XL Release has helped us to visualize the release process of XL Deploy, our product for deployment automation, and how we optimized the release process by automating it.

Step 1: Model the process with manual tasks

Our customers use XL Deploy on premise. Releasing XL Deploy for us means compiling and testing all components and plugins, assembling the documentation and other resources, putting everything in a distribution and finally making everything available online for download, including the announcement. When we first started to use XL Release, we modeled our release flow with only manual tasks. That's not to say nothing was automated: we had a lot of individual scripts, but there was no flow connecting everything together. Having only manual tasks in XL Release felt a bit disappointing back then, but right now I think that was perfectly okay – maybe even desirable – as a start. How can you automate something without understanding the bigger picture? A release plan with only manual tasks is very flexible. We reordered and changed quite a lot of tasks since then, and learned quite a lot. I think the most important things we learned are:
  • What is the exact scope of the release? Including what actions belong to which people? How do we break up larger tasks into more concrete actions?
  • What is the order of events? Which tasks depend on each other? Which tasks can be done in parallel? Which phases do we have?
  • Which systems do we need to interact with? How do we integrate with those systems?
But most importantly, it started the discussion about release automation.

Step 2: Start automating and wire it together

Our goal is to have a release flow that takes our source code and turns it into a downloadable distribution on the website, with the click of a button. The release process is actually quite technical by nature, so we started by automating the release process of individual components. We ended up with many small automated subtasks. From there on we started wiring everything together. It is important to understand that we manage our release process at different levels. Let’s look at them from the bottom up:
  • Gradle is our build tool and focuses just on releasing one specific component. It fetches dependencies, compiles the source code and runs tests, but Gradle is also involved in the release itself. We created Gradle plugins for our low level release tasks like bumping version numbers and creating tags in Git.
  • Jenkins is our middle layer and is basically where all the hard work happens during the release, like executing the actual build process and delegating the work to build slaves. For the release process, there is not a lot of control or logic in this layer. We like to keep this layer as thin as possible.
  • XL Release sits on top to orchestrate the flow of the release and delegates work to Jenkins and Gradle. It also interacts with other systems involved in the release process like JIRA and our download server. XL Release is in full control of the release process.

Step 3. Where are we now

Currently most of our high-level release tasks are automated tasks in XL Release. After a couple of releases and many improvements, this is what our release template currently looks like:screenTo explain in a bit more detail, we distinguish the following phases in our release:
  • Release dependencies: First we make sure to have all dependencies of the core product available.
  • Release preparation: In this phase, we do a final check and we put everything in order. This is a very important phase because we try to gather all human input, allowing the rest of the release to proceed in an unattended way.
  • The core release: If all the builds are green, we build the source code and create the distribution.
  • Smoke test: We run a final smoke test that integrates all released artifacts together and tests them one last time. A final quality check before we go live.
  • Go live: After this phase there is no going back. When the product owner accepts the release, everything is published on the website.
  • Post release: A list of tasks that need to be done to wrap up the release and to prepare development for next release.
Some of our automated tasks include:
  • Triggering builds in Jenkins: To trigger the release build in Jenkins.
  • Running remote shell scripts: Triggers a remote shell script to start syncing the distribution from nexus to our download server.
  • Verifying distributions are downloadable: A custom tasks that checks if the HTTP status code of a specific URL is ok.
  • Marking the released version as released in JIRA with current date: Yet another custom task that does rest calls to the JIRA API.
It's quite easy to create custom tasks for XL Release. Have a look at our community plugins for examples on how to do this. Focusing on release automation changed our mindset. Aiming for a fully automated release influences the way you make decisions. When we are about to make a change that affects the release, the first question asked is: How can we fit that in our automated release process?

What's next?

We've made a lot of progress with our release automation, but there is always room for improvement. There are still some manual tasks left to automate, like automatically creating maintenance branches together with Jenkins jobs after the release, or announcing the release on Zendesk, etc. There will always be manual tasks for things like reviewing the release notes. It's just a matter of how you put together your flow. We organized our flow in such a way that the manual tasks go in the early phases. We "prepare" the automated tasks to continue in an unattended way. XL Release gives us high level overview, great flexibility and control, something that would have been impossible with using just Jenkins. The release process changes all the time, especially at the highest (process) level. It helps to have a flexible tool that does not carve the process in stone. For that reason XL Release has been given a permanent place in our release automation tool belt.   If you would like to try XL Release to start automating your pipeline and gaining control and visibility, you can download it here:   

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