Solved by following *https://wiki.jenkins-ci.org/display/JENKINS/Structs+plugin <https://wiki.jenkins-ci.org/display/JENKINS/Structs+plugin> *and changing the order of variables in the Constructor.
On Sunday, August 28, 2016 at 6:40:32 PM UTC+3, [email protected] wrote: > > Hi, > I followed the nice guide on refactoring my Jenkins plugin to pipeline > compatibility given at Jenkins.io. > I've stumbled on a strange issue - the snippet generator creates the > groovy syntax but without parenthesis and without brackets, which is ok > since groovy does support it. > > But once i paste in at my job DSL he writes "Unexpected token: "one of the > tags" ", if i add the brackets manually - it works! > > another small issue i've noticed while debugging is that it calls the > Class extending "AbstractStepImpl" twice - but I'm not sure it's related... > > the code is here: > > https://github.com/YafimK/hp-application-automation-tools-plugin/tree/LoadRunnerPipelineStep/src/main/java/com/hp/application/automation/tools/pipelineSteps > > that's my current dependency list: > > <dependency> > <groupId>org.jenkins-ci.plugins.workflow</groupId> > <artifactId>workflow-step-api</artifactId> > <version>${workflow.version}</version> > </dependency> > <dependency> <!-- Test framework --> > <groupId>org.jenkins-ci.plugins.workflow</groupId> > <artifactId>workflow-step-api</artifactId> > <version>${workflow.version}</version> > <classifier>tests</classifier> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.jenkins-ci.plugins.workflow</groupId> > <artifactId>workflow-aggregator</artifactId> > <version>${workflow.version}</version> > <scope>test</scope> > </dependency> > <dependency> > <groupId>org.jenkins-ci.plugins.workflow</groupId> > <artifactId>workflow-cps</artifactId> > <version>${workflow.version}</version> > </dependency> > > > and I'm building with 1.642.4 as baseline and parent POM... > > Is there any known issue or any solution that i've missed (i tried to look > at HTML publisher, junit archiver and artifict archiver as reference) ? > > Thanks ahead, > Fima. > > -- 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/64548efb-d2a6-427f-8cc3-aebec3c97096%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
