Running a custom script in Hudson
I have a project which is managed by Hudson. Recently I have written a simple batch script (in windows) which backs up the repository. The idea is to have it run according to a schedule. I wanted to integrate that into Hudson, not the project. I had a look at the Hudson doco + googling around on that topic, but it seems there is no straight answer for it. The closest thing I saw was the Execute Windows batch command, which appears to run a project rather than just a custom made scr开发者_运维百科ipt.
Is there a way to run just a script in Hudson?
TIA.
We are running hudson in a Linux server, but it should be relatively the same thing…
Under the build category in the configuration, there should be an execute shell command text box. It accepts all kind of CLI commands… It should typically run commands like cd folder_name or dir…
You could create a new job in Hudson and use the execute shell text box to do something like:
cd folder_of_backup_script
backup_script
精彩评论