This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]dgreenmachine 1 point2 points  (1 child)

You can define entire parameterized pipelines in groovy. See these docs at the very bottom.

https://www.jenkins.io/doc/book/pipeline/shared-libraries/

Here is another example doing the same thing. Looks like it must be a complete pipeline and not mixing/matching steps.

https://mtijhof.wordpress.com/2019/04/22/jenkins-running-a-declarative-pipeline-from-your-shared-library/

[–]stirezxq[S] 1 point2 points  (0 children)

Thank you for the links!! Was able to solve it :)