command-launcher terminates the process

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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:
            Unassigned
            Reporter:
            Alexandru Băluț
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: