My problem is very similar to a previous issue posted in here :
IndexError: index out of bounds
I am adapting the code developed for an XL-Release Community plugin. This original comunity “plugin”, is nothing more but a Task that iterates over lists and creates as many tasks as the items of a list. We did some small changes to this original code in order to iterate lists of a python dictionary, and I am getting an error on this method :
def addTaskToChangeVariable(value):
print(“Inserts a task with a little script to change the value of the looping variable”)
scriptTask = taskApi.newTask(“xlrelease.ScriptTask”)
print(“The task is {} “.format(scriptTask))
scriptTask.script = “releaseVariables.update({})”.format(value)
scriptTask.title = “{} “.format(value)
scriptTask = phaseApi.addTask(task.container.id, scriptTask, position)
# taskApi.lockTask(scriptTask.id)
The error is :
javax.script.ScriptException: com.xebialabs.deployit.checks.Checks$IncorrectArgumentException: com.xebialabs.deployit.checks.Checks$IncorrectArgumentException: Task index out of bounds in at line number 103
I am still troubleshooting this error on XL-Release
Code Klaudia is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.