Re: How can I test my plugin in pipeline?

2023-11-16 Thread 'Jesse Glick' via Jenkins Developers
In other words, write some basic tests using JenkinsRule first. If you then want to test interactively to check UI and so on, use mvn hpi:run Since the relevant Pipeline plugins (minimally `workflow-job` + `workflow-cps`, usually also `workflow-basic-steps` + `workflow-durable-task-step`,

Re: How can I test my plugin in pipeline?

2023-11-16 Thread 'Jesse Glick' via Jenkins Developers
On Thu, Nov 16, 2023 at 9:58 AM tzach solomon wrote: > I want to test [my new plugin] in pipeline > https://github.com/jenkinsci/archetypes/blob/282d79c14f8453bdffe1c74d5010dfdcf776ed9f/hello-world/src/main/resources/archetype-resources/src/test/java/HelloWorldBuilderTest.java#L64-L74 -- You

Re: How can I test my plugin in pipeline?

2023-11-16 Thread tzach solomon
Thank you Mark! :) On Thu, Nov 16, 2023 at 5:07 PM Mark Waite wrote: > The Hello World example assumes that the declarative Pipeline is > installed. If it is not installed, then you'll need to install it. > > On Thursday, November 16, 2023 at 7:58:09 AM UTC-7 tzach@gmail.com > wrote: > >>

Re: How can I test my plugin in pipeline?

2023-11-16 Thread Mark Waite
The Hello World example assumes that the declarative Pipeline is installed. If it is not installed, then you'll need to install it. On Thursday, November 16, 2023 at 7:58:09 AM UTC-7 tzach@gmail.com wrote: > Hi, > > I'm following the tutorial of creating a new plugin and I want to test it

How can I test my plugin in pipeline?

2023-11-16 Thread tzach solomon
Hi, I'm following the tutorial of creating a new plugin and I want to test it in pipeline but beforehand I just wanted to check that pipeline job is working OK, so I've created a new pipeline using the Hello World template of pipeline script but it does not work OK. What I'm seeing is this: