Re: Jenkins Plugin cannot get called from the pipeline with new syntax

2019-02-26 Thread prasad.pofali via Jenkins Users
Thanks Richard, I have defined the Symbol using @Symbol("TestUploader") annotation but it was not working. Now that I have changed the parameter of annotation to @Symbol("testUploader"), it is working with the following syntax. pipeline { agent any stages { stage('Build and R

Re: Jenkins Plugin cannot get called from the pipeline with new syntax

2019-02-25 Thread Richard Bywater
You'll need to provide some idea of what error/behaviour you are seeing as otherwise it's hard to help point you in the right direction. Richard On Tue, 26 Feb 2019, 1:17 AM prasad.pofali via Jenkins Users, < jenkinsci-users@googlegroups.com> wrote: > Hello, > > I have created a Symbol in TestRu

Re: Jenkins Plugin cannot get called from the pipeline with new syntax

2019-02-25 Thread prasad.pofali via Jenkins Users
Hello, I have created a Symbol in TestRunPublisher for descriptor. The code now looks like following: public class TestUploader extends Publisher implements SimpleBuildStep { private final String name; private final String password; //getters are there for above variables. @DataBoun

Re: Jenkins Plugin cannot get called from the pipeline with new syntax

2019-02-23 Thread Richard Bywater
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, < jenkinsci-users@googlegroups.com> wrote: > I have developed a custom Jen

Jenkins Plugin cannot get called from the pipeline with new syntax

2019-02-22 Thread prasad.pofali via Jenkins Users
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