Get Hudson's Web Sites at a Specific Time

I create several subordinates for my master Hudson, grouped by label. I would like to be able to have a set of nodes that work during the day, and an additional set of nodes that turn on during the evening.

Is this possible, either directly using hudson, or through a plugin or script? If so, what is your recommended solution?

+4
source share
3 answers

Let the OS (or any other scheduler) control the start and stop of the node. Hudson uses only what is available. You do not know how Hudson acts if a node dies during a job.

Update : a feature that Michael Donohe is no longer experimental and available for all nodes (I use SSH node). Works great (at least take only if necessary).

+1
source

There is an experimental function for planning when each subordinate should be available. It is located in the kernel, but you must set the system property to enable it. So, if you start Hudson with

java -Dhudson.scheduledRetention=true -jar hudson.war

You will get an additional configuration option on each node, which allows you to specify a schedule for when to use node.

+4
source

Turning to what @Peter Schuetze said ...

If the nodes are not virtual machines that you want to control Hudson ( see VMware plugin ), start and stop operations go out of Hudson control. Depending on how you set up your subordinates, Hudson may simply automatically connect when he sees that the node is online, or you may need to make sure that the slave starts something at startup.

You can use the Hudson API (typically HTTP POSTs for URLs on the Hudson host) to tell Hudson that the hosts are going offline ahead of time. This will help avoid crashes that will be killed when the node is down. Check the HTML source on the node page ( http: // hudson / computer / node_name ) to find out what the web interface does for "mark offline" and "disable" operations.

0
source

Source: https://habr.com/ru/post/1299660/


All Articles