]> xenbits.xensource.com Git - openstack/ci-loop-config.git/commitdiff
Fix typo referencing '17', and provide an example randomizer
authorDoug Wiegley <dougw@a10networks.com>
Tue, 22 Dec 2015 22:22:43 +0000 (15:22 -0700)
committerDoug Wiegley <dougw@a10networks.com>
Tue, 22 Dec 2015 22:40:02 +0000 (15:40 -0700)
Change-Id: I037323c17efd736ff59591200bcffeebd5450cdf

nodepool/nodepool.yaml

index e109ffdc57181fd65b03aa0bc3ff4ea31cdb44ca..21f7f9707baa90ee0f146b6dfed3effcb7be5d5c 100644 (file)
@@ -8,7 +8,12 @@ cron:
 # TODO: Please choose a random hour for nodepool image updates.
 # This will help reduce the load on upstream git farms & mirros where all 3rd
 # party ci systems start building images at the same time.
-# Doing so is easy: update the first '17' below with a random number between 0 to 23
+# Doing so is easy, run the following command and replace image-update string
+# with the results:
+#   echo "0 $((RANDOM%23+1)) * * *"
+# Example:
+#   root@jenkins:~# echo "0 $((RANDOM%23+1)) * * *"
+#   0 16 * * *
 # This references the hour of the day when images will be built.
   image-update: '0 0 * * *'