diff --git a/modules/jenkins_jobs/templates/builder_copy_bundle.xml.erb b/modules/jenkins_jobs/templates/builder_copy_bundle.xml.erb index be713c36c1..850d6762bd 100644 --- a/modules/jenkins_jobs/templates/builder_copy_bundle.xml.erb +++ b/modules/jenkins_jobs/templates/builder_copy_bundle.xml.erb @@ -6,18 +6,6 @@ - # Support jobs, such as nova-docs, which are not yet triggered by gerrit -if [ "x$GERRIT_BRANCH" = "x" ] ; then - GERRIT_BRANCH=master -fi -mv jenkins_venvs/$GERRIT_BRANCH/.cache.bundle . -rm -fr jenkins_venvs - -if [ -f tools/test-requires -a \ - `git diff HEAD^1 tools/test-requires 2>/dev/null | wc -l` -gt 0 -o \ - `git diff HEAD^1 tools/pip-requires 2>/dev/null | wc -l` -gt 0 ] -then - rm .cache.bundle -fi + bash -x ~/openstack-ci/slave_scripts/copy-bundle.sh diff --git a/modules/jenkins_jobs/templates/builder_coverage.xml.erb b/modules/jenkins_jobs/templates/builder_coverage.xml.erb index df75227b87..b60713483c 100644 --- a/modules/jenkins_jobs/templates/builder_coverage.xml.erb +++ b/modules/jenkins_jobs/templates/builder_coverage.xml.erb @@ -1,9 +1,4 @@ - if [ -f .cache.bundle ] ; then - tox -ejenkinscover -else - tox -evenv -- nosetests test/unit --with-xcoverage --cover-erase --cover-package=<%= project %> - -fi + bash -x ~/openstack-ci/slave_scripts/run-cover.sh diff --git a/modules/jenkins_jobs/templates/builder_docs.xml.erb b/modules/jenkins_jobs/templates/builder_docs.xml.erb index b0820ddddc..24d7db9b0d 100644 --- a/modules/jenkins_jobs/templates/builder_docs.xml.erb +++ b/modules/jenkins_jobs/templates/builder_docs.xml.erb @@ -1,10 +1,4 @@ - mkdir -p doc/build -export HUDSON_PUBLISH_DOCS=1 -if [ -f .cache.bundle ] ; then - tox -ejenkinsvenv python setup.py build_sphinx -else - tox -evenv python setup.py build_sphinx -fi + bash -x ~/openstack-ci/slave_scripts/run-docs.sh diff --git a/modules/jenkins_jobs/templates/builder_gerrit_git_prep.xml.erb b/modules/jenkins_jobs/templates/builder_gerrit_git_prep.xml.erb index dfbbb5af50..3409055992 100644 --- a/modules/jenkins_jobs/templates/builder_gerrit_git_prep.xml.erb +++ b/modules/jenkins_jobs/templates/builder_gerrit_git_prep.xml.erb @@ -1,31 +1,3 @@ - #!/bin/bash -xe - -if [ -z "$GERRIT_NEWREV" ] && [ -z "$GERRIT_REFSPEC" ] -then - echo "This job may only be triggered by Gerrit." - exit 1 -fi - -if [[ ! -e .git ]] -then - git clone https://review.<%= site %>.org/p/$GERRIT_PROJECT . -fi -git remote update || git remote update # attempt to work around bug #925790 -git reset --hard -git clean -x -f -d -q - -if [ ! -z "$GERRIT_REFSPEC" ] -then - git checkout $GERRIT_BRANCH - git reset --hard remotes/origin/$GERRIT_BRANCH - git clean -x -f -d -q - git fetch https://review.<%= site %>.org/p/$GERRIT_PROJECT $GERRIT_REFSPEC - git merge FETCH_HEAD -else - git checkout $GERRIT_NEWREV - git reset --hard $GERRIT_NEWREV - git clean -x -f -d -q -fi - + bash -x ~/openstack-ci/slave_scripts/gerrit-git-prep.sh <%= site %> diff --git a/modules/jenkins_jobs/templates/builder_pep8.xml.erb b/modules/jenkins_jobs/templates/builder_pep8.xml.erb index 35a0227dd0..640930f7c2 100644 --- a/modules/jenkins_jobs/templates/builder_pep8.xml.erb +++ b/modules/jenkins_jobs/templates/builder_pep8.xml.erb @@ -1,9 +1,3 @@ - #!/bin/sh - -if [ -f .cache.bundle ] ; then - tox -v -ejenkinspep8 | tee pep8.txt -else - tox -v -epep8 | tee pep8.txt -fi + tox -v -epep8 | tee pep8.txt diff --git a/modules/jenkins_jobs/templates/builder_python26.xml.erb b/modules/jenkins_jobs/templates/builder_python26.xml.erb index 0bf35607c5..a3bc6ca151 100644 --- a/modules/jenkins_jobs/templates/builder_python26.xml.erb +++ b/modules/jenkins_jobs/templates/builder_python26.xml.erb @@ -1,8 +1,3 @@ - if [ -f .cache.bundle ] -then - tox -v -ejenkinspy26 -else - tox -v -epy26 -fi + bash -x ~/openstack-ci/slave_scripts/run-tox.sh 26 diff --git a/modules/jenkins_jobs/templates/builder_python27.xml.erb b/modules/jenkins_jobs/templates/builder_python27.xml.erb index 462e5f1ed4..a3bc6ca151 100644 --- a/modules/jenkins_jobs/templates/builder_python27.xml.erb +++ b/modules/jenkins_jobs/templates/builder_python27.xml.erb @@ -1,8 +1,3 @@ - if [ -f .cache.bundle ] -then - tox -v -ejenkinspy27 -else - tox -v -epy27 -fi + bash -x ~/openstack-ci/slave_scripts/run-tox.sh 26 diff --git a/modules/jenkins_jobs/templates/builder_tarball.xml.erb b/modules/jenkins_jobs/templates/builder_tarball.xml.erb index 4c51f32b42..0291d8de23 100644 --- a/modules/jenkins_jobs/templates/builder_tarball.xml.erb +++ b/modules/jenkins_jobs/templates/builder_tarball.xml.erb @@ -1,4 +1,3 @@ - ~/openstack-ci/slave_scripts/create-tarball.sh - + bash -x ~/openstack-ci/slave_scripts/create-tarball.sh