Sure, here is the stack trace:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 3: unexpected token: dd3afb84-7f74-4a47-b9da-1cd5ed1cfc59 @ 
line 3, column 34.
       CustomStep 'dd3afb84-7f74-4a47-b9da-1cd5ed1cfc59'
                                    ^

1 error

        at 
org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310)
        at 
org.codehaus.groovy.control.ErrorCollector.addFatalError(ErrorCollector.java:150)
        at 
org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:120)
        at 
org.codehaus.groovy.control.ErrorCollector.addError(ErrorCollector.java:132)
        at org.codehaus.groovy.control.SourceUnit.addError(SourceUnit.java:360)
        at 
org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:145)
        at 
org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:111)
        at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:237)
        at 
org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:167)
        at 
org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:931)
        at 
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593)
        at 
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569)
        at 
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546)
        at 
groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
        at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
        at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
        at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
        at 
org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67)
        at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:410)
        at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:373)
        at 
org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:213)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE



Le lundi 26 septembre 2016 18:02:36 UTC+2, [email protected] a écrit :
>
> could you please post the stack trace from the console?
>
> On Monday, September 26, 2016 at 6:38:55 PM UTC+3, Cédric Cousseran wrote:
>>
>> Thanks for the response,
>>
>> I took a look at your code, but I've not been able to notice any 
>> noticeable difference.
>>
>> Here is my code, if you have any idea what's wrong in it:
>>
>> public class CustomStepExecution extends 
>> AbstractSynchronousNonBlockingStepExecution<Void> {
>>
>>     private static final long serialVersionUID = 1L;
>>
>>     @StepContextParameter
>>     private transient TaskListener listener;
>>
>>     @StepContextParameter
>>     private transient FilePath ws;
>>
>>     @StepContextParameter
>>     private transient Run build;
>>
>>     @StepContextParameter
>>     private transient Launcher launcher;
>>
>>     @Inject
>>     private transient CustomStep step;
>>
>>     @Override
>>     protected Void run() {
>>        //work
>>         return null;
>>     }
>> }
>>
>>
>>
>> public class CustomStep extends AbstractStepImpl {
>>
>>     private final String string;
>>
>>     public String getString() {
>>         return string;
>>     }
>>
>>     @DataBoundConstructor
>>     public CustomStep(@Nonnull String string) {
>>         this.string = string
>>     }
>>
>>     @Extension
>>     public static class DescriptorImpl extends AbstractStepDescriptorImpl {
>>
>>         public DescriptorImpl() {
>>             super(CustomStepExecution.class);
>>         }
>>
>>         @Override
>>         public String getFunctionName() {
>>             return "CustomStep";
>>         }
>>
>>         @Nonnull
>>         @Override
>>         public String getDisplayName() {
>>             return "Launch Step";
>>         }        
>>     }
>> }
>>
>>
>>
>>
>> Le lundi 26 septembre 2016 15:53:48 UTC+2, [email protected] a écrit :
>>>
>>> If you'd publish some link to your code - I could take a look and see if 
>>> there's any fix i made that can be relevant for your plugin.
>>>
>>> You can also compare here to see if you spot any differences (it's in 
>>> ongoing work following the comments I got from Jesse but it works)
>>>
>>> https://github.com/YafimK/hp-application-automation-tools-plugin/tree/LoadRunnerPipelineStep/src/main/java/com/hp/application/automation/tools/pipelineSteps
>>>  
>>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FYafimK%2Fhp-application-automation-tools-plugin%2Ftree%2FLoadRunnerPipelineStep%2Fsrc%2Fmain%2Fjava%2Fcom%2Fhp%2Fapplication%2Fautomation%2Ftools%2FpipelineSteps&sa=D&sntz=1&usg=AFQjCNGWrVTIVdHBkMelZkfjemNU8wMJsQ>
>>>
>>> On Monday, September 26, 2016 at 4:13:54 PM UTC+3, Cédric Cousseran 
>>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> I've encountered the same issue with my plugin, the syntax of the 
>>>> snippet generator is not supported.
>>>> I've tried the solutions you mentioned, without success.
>>>> Do you have a more precise idea of what caused your issue?
>>>>
>>>> Thanks,
>>>> Cédric Cousseran
>>>>
>>>>
>>>> Le jeudi 1 septembre 2016 14:53:45 UTC+2, Fima a écrit :
>>>>>
>>>>> Saw that, but I couldn't find what you've said about the Flow Node... 
>>>>> I guess I'll look at the code.
>>>>>
>>>>>
>>>>> On Thu, Sep 1, 2016 at 1:54 PM, Jesse Glick <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> https://github.com/jenkinsci/workflow-step-api-plugin/blob/master/README.md
>>>>>>  
>>>>>> has some information though it probably needs more. 
>>>>>> https://github.com/jenkinsci/pipeline-plugin/blob/master/DEVGUIDE.md 
>>>>>> is the landing page.
>>>>>>
>>>>>> -- 
>>>>>> You received this message because you are subscribed to a topic in 
>>>>>> the Google Groups "Jenkins Developers" group.
>>>>>> To unsubscribe from this topic, visit 
>>>>>> https://groups.google.com/d/topic/jenkinsci-dev/34AKdC0SARM/unsubscribe
>>>>>> .
>>>>>> To unsubscribe from this group and all its topics, send an email to 
>>>>>> [email protected].
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3c_mY3enmY6jJNFMAiTsOwX55PKxLO6E2vR0Bo4Csf3Q%40mail.gmail.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr3c_mY3enmY6jJNFMAiTsOwX55PKxLO6E2vR0Bo4Csf3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/2a9817d3-0d91-491d-b539-079d773b6c7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to