Hi Hans, On Thu, Jun 08, 2017 at 11:34:05AM +0200, Hans-Christoph Steiner wrote: > We would like to configure Build Timeout and Naginator for the > reproducible_setup_fdroid_build_environment job on pb7 so that the build > times out after 12 hours. Then if the build times out, it should retry > it. The Build Timeout plugin when used with the Naginator plugin > provides this exact feature, calling it "Abort and restart the build". > > Sometimes the VMs just hang forever, we don't know why. But rerunning > the job then works fine. Here is an example, it failed after the whole > VM was created, then it hung while trying to build an app with it: > https://jenkins.debian.net/job/reproducible_setup_fdroid_build_environment/11/ > > I would submit a pull request myself, but I couldn't figure out how to > enable this in the Jenkins YAML.
I'm not sure exactly how to do this combination, but job-cfg/packages-tests.yaml shows how to configure the naginator plugin (search for that string…) and job-cfg/packages-tests.yaml shows how to configure the timeout plugin (search for timeout). https://docs.openstack.org/infra/jenkins-job-builder/publishers.html describes how to configure the naginator plugin, https://docs.openstack.org/infra/jenkins-job-builder/wrappers.html the timeout plugin. -- cheers, Holger
signature.asc
Description: Digital signature

