Re: Calling a Jenkins plugin from pipeline

2019-02-08 Thread Jesse Glick
For Declarative, you would probably want this in a `post` block, and you should add a `@Symbol` to your publisher. -- 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

Re: Calling a Jenkins plugin from pipeline

2019-02-08 Thread prasad.pofali via Jenkins Developers
My Complete pipeline looks like this: import hudson.model.* checkout filesystem(clearWorkspace: false, copyHidden: false, path: 'C:\\java-junit-sample-master\\java-junit-sample-master') pipeline { agent any stages { stage('Build and Run Tests') { steps { node {

Re: Calling a Jenkins plugin from pipeline

2019-02-08 Thread Ullrich Hafner
What about pipeline { agent 'any' stages { stage ('Build and Analysis') { steps { [$class : 'TestExamplePublisher', applications:[name: 'PrasadP']] } } } } You will get faster feedback for such pipeline questions on the users

Re: Calling a Jenkins plugin from pipeline

2019-02-08 Thread prasad.pofali via Jenkins Developers
I want a declarative pipeline. I have a declarative pipeline configured already, so I would not want to change that. On Friday, February 8, 2019 at 2:04:00 PM UTC+5:30, Ullrich Hafner wrote: > > You are mixing declarative and scripted. What kind of pipeline do you want > to create? > > Example

Re: Calling a Jenkins plugin from pipeline

2019-02-08 Thread Ullrich Hafner
You are mixing declarative and scripted. What kind of pipeline do you want to create? Example scripted: https://github.com/jenkinsci/analysis-model/blob/master/Jenkinsfile.local Example declarative:

Re: Calling a Jenkins plugin from pipeline

2019-02-07 Thread prasad.pofali via Jenkins Developers
I have created a node and inside added the pipeline code: stage('Build and Run Tests') { > steps { > node { > step([$class : 'TestExamplePublisher', applications:[name: > 'PrasadP']]) > } > } > } With this it gave me the following exception: FSSCM.check completed

Re: Calling a Jenkins plugin from pipeline

2019-02-07 Thread Tim Jacomb
You need to be in a node block for that to work node { Your step } On Fri, 8 Feb 2019 at 07:35, prasad.pofali via Jenkins Developers < jenkinsci-dev@googlegroups.com> wrote: > Hi, > > I have created a simple Jenkins plugin which prints a Hello world on > Jenkins console. This plugin is

Calling a Jenkins plugin from pipeline

2019-02-07 Thread prasad.pofali via Jenkins Developers
Hi, I have created a simple Jenkins plugin which prints a Hello world on Jenkins console. This plugin is working fine when configured through traditional approach of enabling it through Post Build jobs. Now I am trying to call that plugin through a pipeline code. Below is the code to call the