How to test pipeline jobs in Jenkins

89 views
Skip to first unread message

Tom Kierzkowski

unread,
Feb 25, 2016, 7:04:43 PM2/25/16
to Jenkins Users
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!


Victor Martinez

unread,
Feb 26, 2016, 2:52:53 AM2/26/16
to Jenkins Users
interesting question! I asked the same one some time, the closest solution was:
Maybe there is already another way of testing pipeline/workflows
Reply all
Reply to author
Forward
0 new messages