Sorry, but I'm little confusing.
Can I get the exit code valur from the teste complete command line?
Something like:
exitCode = testcompletetest actionOnErrors: 'MAKE_FAILED', actionOnWarnings: 'MAKE_UNSTABLE', executorType: 'TE', generateMHT: true, launchType: 'lcRoutine', project: 'TestAutomation', routine: "main", suite: 'C:\\JenkinsFolder\\AutomationFiles\\TestAutomation\\Project\\TestAutomation.pjs', unit: UnitNames[index], useTCService: true, userName: 'xxxxxx', userPassword: 'xxxxxx', timeout: '1500', useTimeout: true;
It's not working for me.