Re: How to call jenkins custom plugin from Pipeline

2019-02-22 Thread prasad.pofali via Jenkins Users
I have made changes to the code according to this. And I am able to call the plugin with this syntax. But as this syntax is older, I am seeking for the new approach to call the plugin through new pipeline syntax. Below is my expected syntax: pipeline { agent any stages { stage('B

Re: How to call jenkins custom plugin from Pipeline

2019-02-08 Thread Slide
In order for your plugin to work in pipeline jobs, you need to implement SimpleBuildStep in your recorder and then override the perform method that takes a Run and FilePath instead of an AbstractBuild. You do not need both overrides, the one that I mentioned first will work for both freestyle and p

RE: How to call jenkins custom plugin from Pipeline

2019-02-08 Thread Reinhold Füreder
scope, but definitely also not within a node{ … } block HTH Reinhold From: prasad.pofali via Jenkins Users Sent: Freitag, 8. Februar 2019 11:57 To: Jenkins Users Subject: How to call jenkins custom plugin from Pipeline I am referring a custom Jenkins plugin from here (https://github.

How to call jenkins custom plugin from Pipeline

2019-02-08 Thread prasad.pofali via Jenkins Users
I am referring a custom Jenkins plugin from here (https://github.com/pritic/testExample) This plugin is working fine with the traditional approach of building jenkins jobs. When I tried to call this plugin using a declarative pipeline, it caused an exception. The following is the pipeline code