Be consistent with other scripts in the same directory.
This also improves portability as less hardcoded full path of
python interpreter.
Change-Id: I605710035de2c7c85b5996238af18b3c6b0955ef
Previously the check for ' name: ' was too relaxed and could match lines
that validly set a value for a macro. Make the check for 'name:' much
more restrictive to only match top level names in projects. This was you
can have macros that accept overridden name values without running into
trouble with alphabetization.
Change-Id: I16299f53433cdd1378ae6665399e3deb8a68d381
Example output of test:
$ tools/jenkins-projects-checks.py
Checking section 'OpenStack server projects'
Checking section 'OpenStack client projects'
Checking section 'oslo libraries'
Checking section 'Other OpenStack projects'
Wrong alphabetical order: tempest, qa-specs
Checking section 'OpenStack API projects'
Checking section 'OpenStack documentation projects'
Checking section 'OpenStack development projects'
Checking section 'OpenStack infrastructure projects'
Checking section 'Stackforge projects'
Found errors in jenkins/jobs/projects.yaml!
This patch fixes the order so that it passes.
It also creates a new job to test this.
Change-Id: I36fd522261363494f07b57e40f0d9b943cf08841