
You can see them later if you go to Reports > Controls Task tabs and search for the current date/time range.In the log section below, you would see that the control task would iterate over each Host and execute a checkConnection.Second, type a control task name like checkConnection and then execute.The in the new tab, first select a list of hosts from the available hosts.Select the option “Perform Bulk Control Task”.If you want to change this behavior, you would have to further modify the script and method signature)
#Deployit manifest code#
( NOTE: Now this code only showcases the capability of running multiple control task at once, but references to only overthere.Host type and executes control tasks that don’t take any parameters. Go to infrastructure and right click on that or some directory.Sample 3 use case : Perform a control task on multiple items of the same type Print "Created Folder : " + thisCi.id + "/" + folder If createFolder(thisCi.id + "/" + folder): RepositoryService.create(myfolder.id, myfolder)įor folder in (","): Myfolder = metadataService.findDescriptor(typeObj).newInstance(foldername)


Usage : To use the following task, do the following: Sample 2 use case : Create multiple folders under a hierarchy RepositoryService.update(thisCi.id,thisCi)
#Deployit manifest how to#
I’ve provided some samples of how to use jythonScript Delegates.
#Deployit manifest update#
If you want to create or update your XL Deploy Repository, the jythonScript Delegate can come to the rescue. The localShellScripts delegate has the capability of executing multiple scripts on the XL Deploy host. The shellScripts delegate has the capability of executing multiple scripts on a target host. The localShellScript delegate has the capability of executing a single script on a the XL Deploy host. The shellScript delegate has the capability of executing a single script on a target host. The third link provides knowledge of the most common types of control tasks available: Understanding control tasks in XL Deploy || XebiaLabs documentationĬreate a custom control task || XebiaLabs documentationĬontrol task delegates in the XL Deploy Generic plugin || XebiaLabs …Įxecute a control task from the XL Deploy CLI || XebiaLabs …Īdd a control task to an existing type || XebiaLabs documentation The links provided below will help you build your knowledge of Control Tasks If the control task has parameters, you must provide them before you start the control task.Ĭontrol tasks comes as both simple tasks which you can trigger, and more complex ones where you can pass some parameters for a desired behavior. This will invoke the selected action on the CI. Select the control task you want to trigger.

Right-click the item to see the control tasks. In the Repository, locate the CI for which you want to trigger a control task. To trigger a control task on a CI in the repository, do the following: Today we’ll talk about how you can write a Control Task in XL Deploy using Jython for managing the contents of the XL Deploy Repository itself.Ĭontrol tasks are actions that can be performed on middleware or middleware resources for example, checking the connection to a host, start/stop a middleware server is a control task. When a control task is invoked, XL Deploy starts a task that executes the steps associated with the control task.
