We've used this fork too https://github.com/macg33zr/pipelineUnit to unit test the declarative pipelines
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Sun, Apr 7, 2019 at 3:10 PM Sverre Moe <[email protected]> wrote: > Is it possible to create unit tests for our scripted pipeline? > > How can certain sections of the pipeline be mocked, like fetching from > Git, tagging to Git, Uploading to Nexus? > > Anyone been able to fully unit test scripted pipeline? > > I found this project at GitHub regarding Unit testing pipelines. > https://github.com/jenkinsci/JenkinsPipelineUnit > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/bfb4737c-8813-40ef-be39-193d905cd1b8%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/bfb4737c-8813-40ef-be39-193d905cd1b8%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9LpZ3me7CNQGxog9dqw%3Dw%3D932ZBA%3D_dRc_ASb56rtm1qg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
