project-config/jenkins/jobs/xstatic.yaml
Joshua Hesketh 7239b761e9 Check git tag matches xstatic version
Before uploading to pypi check the git tag matches the xstatic version.

If it fails the upload will be aborted and
http://lists.openstack.org/cgi-bin/mailman/listinfo/release-job-failures
will be notified.

Start with xstatic-angular-bootstrap but this should be applied to
all xstatic projects.

Change-Id: I8fbbbb45d1081ec80981b5d8fa855f3cab8837f9
2016-06-20 20:18:30 +10:00

20 lines
472 B
YAML

- job:
name: 'xstatic-check-version'
node: ubuntu-trusty
builders:
- revoke-sudo
- gerrit-git-prep
- shell: |
virtualenv .venv
source .venv/bin/activate
pip --version
# Install setuptools_scm pre-requisite
pip install setuptools_scm
# Check version match
/usr/local/jenkins/slave_scripts/xstatic_check_version.py
deactivate
publishers:
- console-log