Monty Taylor db84dff05c Clean up in requirements job
We don't run this job with a fully clean workspace (git clean in the
requirements repo does not seem to also delete git repositories that
have been cloned as subdirs) So we need to remove and re-clone.

Also, while looking in to this, concurrent: false was missing. I'm
pretty sure we don't want to run more than one of these.

Change-Id: I09d1d07b815c348df5d9ae664b84dba9d5d169f0
2013-10-09 09:31:01 -04:00

38 lines
1.1 KiB
YAML

- job:
name: gate-requirements-install
node: precise
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
source /usr/local/jenkins/slave_scripts/select-mirror.sh openstack requirements
virtualenv --clear .venv
FILE="global-requirements.txt"
# Ignore lines beginning with https?:// just as the mirror script does.
sed -e '/^https\?:\/\//d' $FILE > $FILE.clean
# Run the same basic pip command that the mirror script runs.
.venv/bin/pip install -M -U --exists-action=w -r $FILE.clean
if [ -e dev-requirements.txt ] ; then
.venv/bin/pip install -M -U --exists-action=w -r dev-requirements.txt
fi
# Print all installed stuff to demonstrate versions
.venv/bin/pip freeze
publishers:
- console-log
- job:
name: propose-requirements-updates
node: proposal
concurrent: false
builders:
- gerrit-git-prep
- shell: /usr/local/jenkins/slave_scripts/propose_requirements_update.sh
- link-logs
publishers:
- console-log