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

Using the XL Deploy CLI to Update Properties Prior to Deployment

DevOps

Have you ever wondered if you could modify the properties of one of the objects you are deploying just before the actual deployment from a CLI script? You can make last minute changes like this in the UI just before deployment.  We always tell people that anything you can do from the UI can be done from the CLI.  Let's first see what this looks like from the UI.  Let's say we have an environment "DEV" and an application "unixFile" as follows:

Screen Shot 2015-05-12 at 2.30.39 PMWe can then double click on the "folder1" object to reveal the properties of this object and make changes before we deploy them.  Screen Shot 2015-05-12 at 2.31.07 PMFor example we can change the "Target Path" for the file from "/tmp/masterFolder" to "/tmp/blog/test" as follows:  Screen Shot 2015-05-12 at 2.31.34 PMAfter doing the deployment we will notice that the files are deployed to the new folder.  Screen Shot 2015-05-12 at 2.32.21 PMSo that is fine, but what we want to do is the same thing with a CLI script.  In our script we will follow much the same process.  Below is a CLI script to do the same thing.  Screen Shot 2015-05-12 at 2.44.01 PMLet's look at what is happening here.  First we set some variables for the application and environment that we are going to be deploying to.  Then we start the deployment and generate the mapping.  This is the same as our first step above.  Now, before we actually kick off the deployment we will modify the "Target Path" of our deployed.  Once that is done we can create the deployment tasks and start the deployment.  To verify that our deployment went as expected we can have a look at the deployment in the UI under reports as follows:  Screen Shot 2015-05-12 at 2.52.51 PMAs you can see from the deployment log we were able to change the final deployment path.  You can use this process for changing the properties of any deployed during the CLI.  

More from the Blog

View more
Ascension Launch Banner
Apr 26, 2022

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

DevOps
Today, Digital.ai is excited to announce our latest AI-Powered DevOps ...
Read More
Jan 24, 2022

Digital.ai Value Stream Delivery for SAFe®: The key to amazing business outcomes

DevOps
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

DevOps
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

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