I was wondering if anyone has had success in managing a way to test your pipeline scripts locally outside of running your scripts within Jenkins. Currently, I'm deep diving into Groovy and was hoping to start a manageable development workflow against our pipeline scripts (i.e. setting up a Continuous Integration pipeline/workflow for our Continuous Integration pipeline scripts :))
I'm also curious if anyone had any suggestions for how to test the scripts in particular, possibly without a Jenkins instance on your machine (Docker or otherwise). i'm working with Spock and hoping to see how far I can get with testing them through it. I'm not sure if I would have to write elaborate mock objects so that my test code would work on my local machine and even then there's no guarantee I'm testing it properly. I understand if this sounds like a major undertaking but I was hoping to tame the complexity of our current build and deploy process with testable, manageable scripts.
Thanks for your input!