You need to define a Symbol in your plugin. See Defining Symbols section at https://jenkins.io/doc/developer/plugin-development/pipeline-integration/
Richard On Sat, 23 Feb 2019, 11:25 AM prasad.pofali via Jenkins Users, < [email protected]> wrote: > I have developed a custom Jenkins plugin which extends *Recorder *and > implements *SimpleBuildStep*. I was calling this plugin using the syntax: > > pipeline { > agent any > stages { > stage('Build and Run Tests') { > steps { > step([$class : 'TestClass', name: 'admin', lastname: > 'admin', endPoint:'http://localhost:8080/', file:'path/to/myfile.txt']) > } > } > } > } > > > With this the plugin is executed, but now my requirement is to call this > plugin with the different pipeline syntax which is our primary requirement. > The required syntax is as follows: > > pipeline { > agent any > stages { > stage('Build and Run Tests') { > steps { > TestClass name:'admin' lastname: 'admin' endPoint: ' > http://localhost:8080/', file:'path/to/myfile.txt' > } > } > } > } > > > But I am not able to call the same plugin with the above syntax. Can > anyone please help me? > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" 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-users/db5c1523-75e2-4969-ba26-54dede193291%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/db5c1523-75e2-4969-ba26-54dede193291%40googlegroups.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 Users" 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-users/CAAy0hwdCjRxSWRcufGsFpTxf2thWEBKhf-9gAMfHK90%3Dd1ZFew%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
