Stanislav Ovchar

Results 48 comments of Stanislav Ovchar

@novaterata, I think this functionality should be implemented as a dedicated library. However, in .NET world java is not a popular environment for CI/CD so i'm not sure that there...

I think it is a good idea to add some log message to the callstack when it processing agent closure

@shadycuz https://github.com/jenkinsci/JenkinsPipelineUnit/blob/3d0c6c2d1b2969e571fb2045580128c98bb59d95/src/main/groovy/com/lesfurets/jenkins/unit/PipelineTestHelper.groovy#L158 By default the JPU will call "mock" and it makes no difference whether it's a method of the script or a method of the pipeline plugin. It just...

Hi @microhod In your example you're using `custom.task()` this is exactly usage of a static method. `custom` here is a reference to `Class` not to an instance. This is the...

Could you please share your pipeline, test. If you can submit a PR with testcase to reproduce your issue this will be the best

That's sad, could you please share your attempt to reproduce the issue? Maybe I can help.

That's great news, I briefly looked through, I have no idea so far what is the difference in `pass` and `non-pass` behaviours. I just noticed that you're are using shared...

@microhod, for sure this need an additional investigation, looks like non-pass call-chain is somehow switching the context. But I'm not sure where to start to dig in.

Hi @Angelina1984, sorry for a late response to fix you issue you need to tweak `WhenDeclaration` class https://github.com/jenkinsci/JenkinsPipelineUnit/blob/f12bed2e8b52b72d392c776b55e5a346a65f1de3/src/main/groovy/com/lesfurets/jenkins/unit/declarative/WhenDeclaration.groovy Unfortunately declarative pipeline support in this project has a lack of features