system-config/modules/openstack_project/files/jenkins_job_builder/config/requirements.yaml
James E. Blair 17bbf537fd Revoke sudo from almost all jobs
Everything except jobs that are designed to run on devstack-precise
or tripleo-precise.  Even the jobs on the static slaves, just to be
more consistent and future-proof (even though it's not strictly
necessary).

Change-Id: I220e4f8346b5db1394536b334bcb7c3a7dd4dedb
2014-03-21 12:00:06 -07:00

48 lines
1.2 KiB
YAML

- job-template:
name: '{pipeline}-requirements-integration-dsvm'
node: '{node}'
wrappers:
- timeout:
timeout: 125
fail: true
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_EXERCISES=0
export DEVSTACK_GATE_REQS_INTEGRATION=1
export PIP_PROCESS_DEPENDENCY_LINKS=1
function gate_hook {{
bash $BASE/new/devstack-gate/devstack-vm-gate.sh && \
bash -xe $BASE/new/pbr/tools/integration.sh $(cat $BASE/new/requirements/projects.txt)
}}
export -f gate_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log
- job:
name: propose-requirements-updates
node: proposal
builders:
- revoke-sudo
- link-logs
- net-info
- gerrit-git-prep
- shell: /usr/local/jenkins/slave_scripts/propose_requirements_update.sh
publishers:
- console-log