Commit Graph

3 Commits

Author SHA1 Message Date
YAMAMOTO Takashi
ec225a6c84 Use a canonical way to specify python
Be consistent with other scripts in the same directory.

This also improves portability as less hardcoded full path of
python interpreter.

Change-Id: I605710035de2c7c85b5996238af18b3c6b0955ef
2015-01-27 14:57:14 +09:00
Clark Boylan
88a5492951 Better name checking in jenkins project checks
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
2015-01-16 15:23:25 -08:00
Andreas Jaeger
9836ea5357 Add check for ordering of jenkins/jobs/projects.yaml
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
2014-10-06 22:17:26 +02:00