Added Jenkins build scripts.
(cherry picked from commit cf89aa8441368812af0b5fd732a63b2b3e951a72)
Use 4 cores instead of 2.
(cherry picked from commit 4eb92ddf31ff90cdc8647711fbd1105270929ff2)
Added plain nightly job
(cherry picked from commit d44ea9abefa9927a3c84513c6c732419ee55cf48)
Renice jobs.
(cherry picked from commit 8992c4155b6b05fd558a873d649e413ea89f1a90)
CUDA job uses 4 cores.
(cherry picked from commit 441424aa8d3a6db31f2ca0fbed61bf14d3761ca0)
Some more jobs with 4 cpus.
(cherry picked from commit 0d73fdf9dcdc4d214df0b8b2efd946c243c9975f)
Fixed CPU_COUNT
(cherry picked from commit 2ac3c25abc5fdd205b76f23244a86d8134dee525)
Took out pushes from script, needs to be done in jenkins.