project-config/jenkins/jobs/devstack.yaml
James E. Blair 20576bded0 Clean up proposal slave in a builder
So we can avoid using the jenkins-specific postbuildscript plugin,
move the proposal slave cleanup to a builder.  Run it first so that
it always runs.  Since we're running it first, we can't use it to
clean up our current workspace, so instead, ask it to clean up all
workspaces.

Change-Id: I54a187d643fb76f10cc11411d546c41348b5592e
2016-06-09 09:44:13 -07:00

41 lines
943 B
YAML

# Devstack unit tests are run via a set of shell scripts with the
# run_tests.sh entry point
- job:
name: gate-devstack-unit-tests
node: ubuntu-trusty
builders:
- gerrit-git-prep
- install-distro-packages
- shell: |
#!/bin/bash -xe
# This installs packages from "general" that might be
# required for unit tests
./tools/install_prereqs.sh
- revoke-sudo
- shell: |
#!/bin/bash -xe
./run_tests.sh
publishers:
- console-log
- job:
name: propose-devstack-plugins-list
node: proposal
builders:
- proposal-slave-cleanup
- revoke-sudo
- link-logs
- branch-git-prep:
branch: master
- net-info
- shell: |
export ZUUL_REFNAME=master
/usr/local/jenkins/slave_scripts/propose_update.sh \
devstack-plugins-list
publishers:
- console-log