← Back to team overview

canonical-ci-engineering team mailing list archive

Re: Autorestarting jenkins slaves

 

On 9 December 2013 13:38, Vincent Ladeuil <vila+ci@xxxxxxxxxxxxx> wrote:
> === modified file 'debian/jenkins-slave.upstart'
> --- debian/jenkins-slave.upstart        2013-02-17 17:11:13 +0000
> +++ debian/jenkins-slave.upstart        2013-12-09 10:29:01 +0000
> @@ -17,3 +17,6 @@
>      exec start-stop-daemon --start -c $JENKINS_USER --exec $JAVA --name jenkins-slave \
>          -- $JAVA_ARGS -jar $JENKINS_RUN/slave.jar $JENKINS_ARGS
>  end script
> +
> +# respawn if the slave crash
> +respawn

respawn limit (http://upstart.ubuntu.com/cookbook/#respawn-limit)
please. Otherwise we will poorly handle the case where the slave is
broken (remember the corrupted jar?) and cannot actually be started.

Thanks!


Follow ups

References