This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.xebialabs.deployit.engine.api.execution.TaskExecutionState as TaskExecutionState | |
taskList = task2.getAllCurrentTasks() | |
for task in taskList: | |
if task.state == TaskExecutionState.EXECUTED : | |
print "Archive : %s %s %s %s" % ( task.id, task.description, task.owner, task.state ) | |
task2.archive( task.id ) | |
elif task.state == TaskExecutionState.FAILED : | |
print "Canceling: %s %s %s %s" % ( task.id, task.description, task.owner, task.state ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httplib, urllib | |
import base64 | |
import re | |
class ServerService: | |
def __init__(self): | |
communicatorField = deployit.getClass().getDeclaredField("communicator") | |
communicatorField.setAccessible(True) | |
communicator = communicatorField.get(deployit.delegate) |