How to do Nant build using jenkinsfile for a pipeline job in Windows?

721 Views Asked by At

I am changing my Freestyle Jenkins job configuration to Pipeline. I need to Invoke Nant to build a .net application. How is it performed using jenkins file?

1

There are 1 best solutions below

0
Pavel the coder On

Well, in groovy script you can use bat function to execute cmd command. So you can type something like bat '<path_to_nant> <nant_parameters>'