Error Message :
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
C:\Automic\Agents\smt12kapp005_groovy_8\Temp\JAAGTNTX.TXT.groovy: 1: expecting ''', found '\r' @ line 1, column 96.
01021',SMT12KAPP005_GROOVY_8,M
A Windows job compiles Groovy code (type: Interpreter).
It is placed inside a workflow.
If it is restarted as a task inside the workflow, it fails.
If the whole workflow is restarted, it works.
If restarted outside the job (not inside a workflow), it works.
Investigation
- Edit your Windows .ini file > set ECPEXE= to the path and name of the Groovy interpreter > set ECPEXT= to the Groovy file extension > Save > restart Windows agent
- Create a Windows job that compiles Groovy script.
- Place that Windows job inside a Workflow.
- Run the JOBP.
- Restart the Windows task inside the workflow.
Results
Actual: Fails with above error message.
Expected: Restarts successfully - failed tasks in workflows are able to restart.