JJB takes age to expand the yaml files. It should be faster.
I went profiling a run of jjb for our config using:
$ cd integration/config $ tox -e jenkins-jobs --notest $ . ./.tox/jenkins-jobs/bin/activate (jenkins-jobs)$ python3 -m cProfile -o profile.prof jenkins-jobs --conf jenkins_jobs.ini test ./jjb/ -o /tmp/new
The resulting profile.prof can be analyzed with python -m cprofile or more elegantly with https://jiffyclub.github.io/snakeviz/
Most of the time is spend loading pkg_resources entry points.