Use the same stringInterceptor in declarative and scripted pipelines#460
Conversation
nre-ableton
left a comment
There was a problem hiding this comment.
Nice, thanks for the fix.
|
@nre-ableton I think the approach from #298 (comment) for "stringInterceptor" in combination with "parameters" and "withCredentials" steps (both having nested "string" steps) would be superior: https://github.com/reinholdfuereder/JenkinsPipelineUnit/tree/parameters
|
|
@reinholdfeurerder I really have no idea what is going on in #298, which is why I didn't review it. In general, I'm not familiar with declarative pipelines, so I tend to stay away from that part of the codebase. However, that PR doesn't make clear what the problem is nor why this is a good solution. If you would like to submit a new PR with a similar solution that can better communicate the situation, I'd be happy to review it. |
|
After starting with a new branch for a new PR I must admit that I re-evaluated the situation and must admit that I have to revoke my claim:
|

Basically just move the string method onto BasePipeline class as params could be used in the scripted pipeline, not only in declarative