Skip to main content
DevOps Image

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

Last Updated Oct 27, 2015 — DevOps Expert

Task Monitor Clean Up in XL Deploy


Over time it is possible to collect XL Deploy tasks that have not been closed and archived properly. A small CLI script can make sure that your completed XL Deploy tasks are all archived. Normally when a deployment is executed in XL Deploy it will be archived so you can review the status of the deployment later. Sometimes these tasks don't automatically archive and will remain the XL Deploy Task Monitor.  import com.xebialabs.deployit.engine.api.execution.TaskExecutionState as TaskExecutionStatetaskList = task2.getAllCurrentTasks()for task in taskList: if task.state == TaskExecutionState.EXECUTED : print "Archive : %s %s %s %s" % (, task.description, task.owner, task.state ) task2.archive( ) elif task.state == TaskExecutionState.FAILED : print "Canceling: %s %s %s %s" % (, task.description, task.owner, task.state ) task2.cancel( ) else: print "---------: %s %s %s %s" % (, task.description, task.owner, task.state ) # End if # End for  An example of the output of this script is as follows:  [localhost bin]$ ./ -q -f `pwd`/ Username: admin Password: Canceling: 1f92fe37-e5d2-42b0-ad0c-717c316a6174 Initial deployment of Environments/IBMPortletApp admin FAILED Canceling: c901320f-7048-4b87-b3e4-abeaea8d2ac1 Initial deployment of Environments/BasicFilePlugin admin FAILED ---------: 20809f4d-3db5-4bc7-92df-dcd2d482ce75 Initial deployment of Environments/LocalEnv/variables admin STOPPED 

Continue reading about XL Deploy's Tips and Tricks with our XL Deploy Resources Page!

More from the Blog

View more
Jul 22, 2021

DevOps as a Service (DaaS): scaling digital transformation the right way

When going through digital transformation, many organizations have dis ...
Read More
Jun 28, 2021

Smash through barriers to data availability, make analytics easier

In DevOps, "data availability" often refers to a state where the app o ...
Read More
Jun 24, 2021

Strategies for DevOps adoption across teams

Implementing DevOps is not merely a change in IT and it’s certainly no ...
Read More
Jun 10, 2021

Desilo DevOps: The power of bringing all your tools and data into one view

When discussing value stream management (VSM), our resources talk a lo ...
Read More
Contact Us