system-config/modules/jenkins/files/slave_scripts
Sergey Lukjanov 600e4271dd Fix/improve projects_yaml_alphabetized script
* use 'if ! command; then' condition to check diff
* previously "diff projects_list projects_list.sorted > projects_list.diff"
  command returns exit code 1 and due to the 'bash -xe' it fails execution
* make sort case insensitive

Now this script prints something like:

+ sed -e '/^- project: /!d' -e 's/^- project: //'
modules/openstack_project/templates/review.projects.yaml.erb
+ LC_ALL=C
+ sort projects_list -o projects_list.sorted
+ diff projects_list projects_list.sorted
+ echo 'The following projects should be alphabetized: '
The following projects should be alphabetized:
+ cat projects_list.diff
+ grep -e '> '
> openstack/openstack-doc-tools
> stackforge/cliff
> stackforge/entropy
> stackforge/fuel-devops
> stackforge/MRaaS
> stackforge/puppet_openstack_builder
> stackforge/stevedore
> stackforge/tooz
+ exit 1

Change-Id: Ib6160dc401a70ada16fa961ae8d941b3e8845d4b
2013-12-20 12:39:18 +04:00
..
baremetal-archive-logs.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
baremetal-deploy.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
baremetal-os-install.sh Kill trailing whitespace. 2012-10-05 23:27:31 +00:00
bump-milestone.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
check_projects_yaml_alphabetized.sh Fix/improve projects_yaml_alphabetized script 2013-12-20 12:39:18 +04:00
create-ppa-package.sh Use ZUUL_ prefix instead of GERRIT_ prefix in jobs 2013-06-21 21:37:59 +00:00
docbook-properties.sh defensive coding for docbook-properties.sh 2013-11-26 18:00:52 -08:00
functions.sh remove code duplication in run-*.sh 2013-11-12 09:53:47 -06:00
gerrit-git-prep.sh Update submodules if they're there 2013-12-10 01:43:44 +01:00
jenkins-oom-grep.sh Check for out-of-memory condition during tox runs. 2012-09-21 20:48:04 +00:00
jenkins-sudo-grep.sh CentOS/RH support for jenkins-sudo-grep.sh script. 2013-05-10 21:48:10 +00:00
jenkinsci-upload.sh deploy jenkins plugin pom.xml file. 2013-08-06 15:37:07 -07:00
lvm-kexec-reset.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
markdown-docbook.sh Changes top-level element to chapter instead of book for markdown 2012-11-26 19:17:54 +00:00
maven-properties.sh Fix intermittent jenkins plugin build failure 2013-08-15 10:47:58 -07:00
mavencentral-upload.sh new maven plugin jobs to build and deploy maven plugins to maven nexus 2013-12-02 17:08:49 +00:00
merge_tags.sh Don't attempt to open an interactive editor 2013-12-13 19:52:48 -05:00
package-gerrit.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
ping.py Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
project-requirements-change.py Add final newline check for requirements 2013-08-16 13:43:59 -07:00
propose_requirements_update.sh Check that the target branch exists 2013-12-11 17:06:04 +00:00
propose_translation_update_manuals.sh Fix Doc Location for Transifex 2013-10-14 15:21:04 +11:00
propose_translation_update.sh Translation update jobs now supports any org 2013-08-29 20:47:53 +04:00
pypi-extract-name.py Determine the package name when uploading to PyPI 2013-09-27 19:28:23 +00:00
pypi-upload.sh Specific twine repository when publishing packages 2013-10-03 15:13:41 -07:00
run-bash8.sh remove code duplication in run-*.sh 2013-11-12 09:53:47 -06:00
run-cover.sh remove code duplication in run-*.sh 2013-11-12 09:53:47 -06:00
run-docs.sh remove code duplication in run-*.sh 2013-11-12 09:53:47 -06:00
run-pep8.sh remove code duplication in run-*.sh 2013-11-12 09:53:47 -06:00
run-pylint.sh remove code duplication in run-*.sh 2013-11-12 09:53:47 -06:00
run-selenium.sh remove code duplication in run-*.sh 2013-11-12 09:53:47 -06:00
run-tarball.sh remove code duplication in run-*.sh 2013-11-12 09:53:47 -06:00
run-tox.sh Provide a more generic run-tox.sh. 2013-09-18 11:57:41 -04:00
run-unittests.sh If zero tests run fail the job. 2013-12-06 12:57:07 -08:00
run-xmllint.sh xmllint prints to stdout, fix script to handle that 2012-11-19 21:44:34 +00:00
select-mirror.sh Merge "Use requirements project list for mirror selection" 2013-12-06 16:55:33 +00:00
subunit2html.py Fix pep8 errors in modules dir 2013-11-12 11:30:34 -05:00
tardiff.py Fix pep8 errors in modules dir 2013-11-12 11:30:34 -05:00
update-pip-cache.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
upstream_translation_update_manuals.sh Fix Doc Location for Transifex 2013-10-14 15:21:04 +11:00
upstream_translation_update.sh Disable fuzzy matching in transifex automation scripts 2013-06-10 21:17:51 +00:00
wait_for_nova.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00
wait_for_puppet.sh Aggregate jenkins modules into one module. 2012-08-12 18:22:26 +00:00