-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 2.107.1
The command launcher is difficult to use for powering on and off instances as they are needed.
As can be seen in https://groups.google.com/forum/?nomobile=true#!topic/jenkinsci-users/EckKCU1rg9o users might want to have a script which: powers on a remote computer, starts the remote agent, power off the remote computer. This can be useful when the instance is in the cloud, used rarely, and it's very expensive to keep it on.
Currently the powering off is very difficult to do because the command-launcher-plugin kills the process (when running the remote agent), so the "power-off" command is not executed.
Maybe you can use TERM instead of KILL to stop the process, in which case the script can handle the event. Best would be if the script is not killed at all, and instead leave the remote agent and the script to stop by themselves. Then it would be possible to run the remaining commands in the script, as expected. This would also eliminate the need to detail this termination behaviour in the plugin documentation.
- relates to
-
JENKINS-5399 Need 'run a command on master to shutdown this slave'
-
- Open
-
[JENKINS-50842] command-launcher terminates the process
Description |
Original:
The command launcher is difficult to use for powering on and off instances as they are needed. As can be seen in [https://groups.google.com/forum/?nomobile=true#!topic/jenkinsci-users/EckKCU1rg9o] users might want to have a script which: powers on a remote computer, starts the remote agent, power off the remote computer. This can be useful when the instance is in the cloud, used rarely, and it's very expensive to keep it on. Currently the powering off is very difficult to do because the command-launcher-plugin terminates the process (when running the remote agent), so the "power-off" command is not executed. Maybe you can use KILL instead of TERM to stop the process, in which case the users could use "trap power-off-method EXIT" to be able to power off the machine when the script is killed. |
New:
The command launcher is difficult to use for powering on and off instances as they are needed. As can be seen in [https://groups.google.com/forum/?nomobile=true#!topic/jenkinsci-users/EckKCU1rg9o] users might want to have a script which: powers on a remote computer, starts the remote agent, power off the remote computer. This can be useful when the instance is in the cloud, used rarely, and it's very expensive to keep it on. Currently the powering off is very difficult to do because the command-launcher-plugin terminates the process (when running the remote agent), so the "power-off" command is not executed. Maybe you can use KILL instead of TERM to stop the process, in which case the users could use "trap power-off-method EXIT" to be able to power off the machine when the script is killed. Best would be if the script is not killed at all, and instead leave the remote agent to stop by itself. Then it would be possible to run the remaining commands in the script as expected. This would also eliminate the need to detail this behaviour in the plugin documentation. |
Description |
Original:
The command launcher is difficult to use for powering on and off instances as they are needed. As can be seen in [https://groups.google.com/forum/?nomobile=true#!topic/jenkinsci-users/EckKCU1rg9o] users might want to have a script which: powers on a remote computer, starts the remote agent, power off the remote computer. This can be useful when the instance is in the cloud, used rarely, and it's very expensive to keep it on. Currently the powering off is very difficult to do because the command-launcher-plugin terminates the process (when running the remote agent), so the "power-off" command is not executed. Maybe you can use KILL instead of TERM to stop the process, in which case the users could use "trap power-off-method EXIT" to be able to power off the machine when the script is killed. Best would be if the script is not killed at all, and instead leave the remote agent to stop by itself. Then it would be possible to run the remaining commands in the script as expected. This would also eliminate the need to detail this behaviour in the plugin documentation. |
New:
The command launcher is difficult to use for powering on and off instances as they are needed. As can be seen in [https://groups.google.com/forum/?nomobile=true#!topic/jenkinsci-users/EckKCU1rg9o] users might want to have a script which: powers on a remote computer, starts the remote agent, power off the remote computer. This can be useful when the instance is in the cloud, used rarely, and it's very expensive to keep it on. Currently the powering off is very difficult to do because the command-launcher-plugin kills the process (when running the remote agent), so the "power-off" command is not executed. Maybe you can use TERM instead of KILL to stop the process, in which case the script can handle the event. Best would be if the script is not killed at all, and instead leave the remote agent and the script to stop by themselves. Then it would be possible to run the remaining commands in the script, as expected. This would also eliminate the need to detail this termination behaviour in the plugin documentation. |
Assignee | Original: Jesse Glick [ jglick ] |
Link | New: This issue relates to JENKINS-5399 [ JENKINS-5399 ] |