Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Executing Batch File in Jenkins

I have a simple batch file. I want to call/run/execute that file from Jenkins.

Is there are plugin in Jenkins for the same ?

How can execute the batch file from Jenkins ? If there is any tutorial or documentation for the same.

like image 530
bhargav Avatar asked Sep 26 '13 06:09

bhargav


1 Answers

No need to add a new plugin for that, in Jenkins , select your job name and go to the configure section.

There is a Build section , on that section there is a combo box, select Execute windows Batch command on that text box you can specify either the batch file details directly or specify the file path.

While building the job the batch file will automatically executed.

like image 148
Sumeshk Avatar answered Sep 19 '22 15:09

Sumeshk