Select a pypi mirror before running tox.
Change-Id: I62a86b6a0ad30ff8cb387ddcc05668128248c6d0 Reviewed-on: https://review.openstack.org/23513 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
07c1647531
commit
8c6df9f19c
modules
jenkins
files/slave_scripts
run-cover.shrun-docs.shrun-pep8.shrun-pyflakes.shrun-pylint.shrun-selenium.shrun-tarball.shrun-tox.shselect-mirror.sh
manifests
openstack_project/files/jenkins_job_builder/config
tools
@ -4,6 +4,20 @@
|
|||||||
# resulting environment at the end so that we have a record of exactly
|
# resulting environment at the end so that we have a record of exactly
|
||||||
# what packages we ended up testing.
|
# what packages we ended up testing.
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
|
||||||
export NOSE_COVER_HTML=1
|
export NOSE_COVER_HTML=1
|
||||||
|
|
||||||
venv=cover
|
venv=cover
|
||||||
|
@ -7,6 +7,20 @@
|
|||||||
# what packages we ended up testing.
|
# what packages we ended up testing.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
|
||||||
venv=venv
|
venv=venv
|
||||||
|
|
||||||
mkdir -p doc/build
|
mkdir -p doc/build
|
||||||
|
34
modules/jenkins/files/slave_scripts/run-pep8.sh
Normal file
34
modules/jenkins/files/slave_scripts/run-pep8.sh
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash -xe
|
||||||
|
|
||||||
|
# Copyright 2013 OpenStack Foundation
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
tox -v -epep8 | tee pep8.txt
|
||||||
|
set +o pipefail
|
||||||
|
|
31
modules/jenkins/files/slave_scripts/run-pyflakes.sh
Normal file
31
modules/jenkins/files/slave_scripts/run-pyflakes.sh
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/bash -xe
|
||||||
|
|
||||||
|
# Copyright 2013 OpenStack Foundation
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
|
||||||
|
tox -v -epyflakes
|
34
modules/jenkins/files/slave_scripts/run-pylint.sh
Normal file
34
modules/jenkins/files/slave_scripts/run-pylint.sh
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash -xe
|
||||||
|
|
||||||
|
# Copyright 2013 OpenStack Foundation
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
tox -v -epylint | tee pylint.txt
|
||||||
|
set +o pipefail
|
||||||
|
|
@ -7,6 +7,20 @@
|
|||||||
# what packages we ended up testing.
|
# what packages we ended up testing.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
|
||||||
venv=venv
|
venv=venv
|
||||||
|
|
||||||
VDISPLAY=99
|
VDISPLAY=99
|
||||||
|
37
modules/jenkins/files/slave_scripts/run-tarball.sh
Normal file
37
modules/jenkins/files/slave_scripts/run-tarball.sh
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash -xe
|
||||||
|
|
||||||
|
# Copyright 2013 OpenStack Foundation
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
|
||||||
|
rm -f dist/*.tar.gz
|
||||||
|
tox -evenv python setup.py sdist
|
||||||
|
|
||||||
|
echo "SHA1sum: "
|
||||||
|
sha1sum dist/*
|
||||||
|
echo "MD5sum: "
|
||||||
|
md5sum dist/*
|
@ -13,10 +13,16 @@
|
|||||||
# "py27"/"jenkins27" respectively.
|
# "py27"/"jenkins27" respectively.
|
||||||
|
|
||||||
version=$1
|
version=$1
|
||||||
|
org=$2
|
||||||
|
project=$3
|
||||||
|
|
||||||
if [ -z "$version" ]
|
if [[ -z "$version" || -z "$org" || -z "$project" ]]
|
||||||
then
|
then
|
||||||
echo "The tox environment python version (eg '27') must be the first argument."
|
echo "Usage: $? VERSION ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "VERSION: The tox environment python version (eg '27')"
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -32,6 +38,8 @@ trap "rm -rf $TMPDIR" EXIT
|
|||||||
|
|
||||||
sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh pre
|
sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh pre
|
||||||
|
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
|
||||||
tox -e$venv
|
tox -e$venv
|
||||||
result=$?
|
result=$?
|
||||||
|
|
||||||
|
51
modules/jenkins/files/slave_scripts/select-mirror.sh
Executable file
51
modules/jenkins/files/slave_scripts/select-mirror.sh
Executable file
@ -0,0 +1,51 @@
|
|||||||
|
#!/bin/bash -x
|
||||||
|
|
||||||
|
# Copyright 2013 OpenStack Foundation
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f ~/.pydistutils.cfg
|
||||||
|
mkdir -p ~/.pip
|
||||||
|
rm -f ~/.pip/pip.conf
|
||||||
|
|
||||||
|
# For OpenStack projects, use the pypi.openstack.org mirror exclusively
|
||||||
|
if [ "$org" == "openstack" ]
|
||||||
|
then
|
||||||
|
echo $org
|
||||||
|
cat <<EOF > ~/.pydistutils.cfg
|
||||||
|
[easy_install]
|
||||||
|
index_url = http://pypi.openstack.org
|
||||||
|
EOF
|
||||||
|
cat <<EOF > ~/.pip/pip.conf
|
||||||
|
[global]
|
||||||
|
index-url = http://pypi.openstack.org
|
||||||
|
EOF
|
||||||
|
else
|
||||||
|
cat <<EOF > ~/.pip/pip.conf
|
||||||
|
[global]
|
||||||
|
index-url = http://pypi.openstack.org
|
||||||
|
extra-index-url = http://pypi.python.org/simple
|
||||||
|
EOF
|
||||||
|
fi
|
@ -42,20 +42,6 @@ class jenkins::jenkinsuser(
|
|||||||
require => File['/home/jenkins'],
|
require => File['/home/jenkins'],
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/home/jenkins/.pip/pip.conf':
|
|
||||||
ensure => present,
|
|
||||||
owner => 'jenkins',
|
|
||||||
group => 'jenkins',
|
|
||||||
mode => '0640',
|
|
||||||
source => 'puppet:///modules/jenkins/pip.conf',
|
|
||||||
require => File['/home/jenkins/.pip'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/home/jenkins/.pydistutils.cfg':
|
|
||||||
ensure => absent,
|
|
||||||
require => File['/home/jenkins'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/home/jenkins/.gitconfig':
|
file { '/home/jenkins/.gitconfig':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'jenkins',
|
owner => 'jenkins',
|
||||||
|
@ -7,11 +7,14 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- coverage
|
- coverage:
|
||||||
|
github-org: openstack
|
||||||
|
project: heat
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- coverage-log
|
- coverage-log
|
||||||
- console-log
|
- console-log
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: 'dev-python-heatclient-coverage'
|
name: 'dev-python-heatclient-coverage'
|
||||||
node: 'oneiric'
|
node: 'oneiric'
|
||||||
@ -21,7 +24,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- coverage
|
- coverage:
|
||||||
|
github-org: openstack
|
||||||
|
project: python-heatclient
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- coverage-log
|
- coverage-log
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- selenium
|
- selenium:
|
||||||
|
github-org: openstack
|
||||||
|
project: horizon
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- console-log
|
- console-log
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- docs
|
- docs:
|
||||||
|
github-org: openstack-infra
|
||||||
|
project: jenkins-job-builder
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- scp:
|
- scp:
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
- builder:
|
- builder:
|
||||||
name: coverage
|
name: coverage
|
||||||
builders:
|
builders:
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/run-cover.sh"
|
- shell: "/usr/local/jenkins/slave_scripts/run-cover.sh {github-org} {project}"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: docs
|
name: docs
|
||||||
builders:
|
builders:
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/run-docs.sh"
|
- shell: "/usr/local/jenkins/slave_scripts/run-docs.sh {github-org} {project}"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: maven-test
|
name: maven-test
|
||||||
@ -50,17 +50,17 @@
|
|||||||
- builder:
|
- builder:
|
||||||
name: pep8
|
name: pep8
|
||||||
builders:
|
builders:
|
||||||
- shell: "set -o pipefail ; tox -v -epep8 | tee pep8.txt ; set +o pipefail"
|
- shell: "/usr/local/jenkins/slave_scripts/run-pep8.sh {github-org} {project}"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: pylint
|
name: pylint
|
||||||
builders:
|
builders:
|
||||||
- shell: "set -o pipefail ; tox -v -epylint | tee pylint.txt ; set +o pipefail"
|
- shell: "/usr/local/jenkins/slave_scripts/run-pylint.sh {github-org} {project}"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: pyflakes
|
name: pyflakes
|
||||||
builders:
|
builders:
|
||||||
- shell: "tox -v -epyflakes"
|
- shell: "/usr/local/jenkins/slave_scripts/run-pyflakes.sh {github-org} {project}"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: puppet-syntax
|
name: puppet-syntax
|
||||||
@ -74,7 +74,7 @@
|
|||||||
- builder:
|
- builder:
|
||||||
name: selenium
|
name: selenium
|
||||||
builders:
|
builders:
|
||||||
- shell: "/usr/local/jenkins/slave_scripts/run-selenium.sh"
|
- shell: "/usr/local/jenkins/slave_scripts/run-selenium.sh {github-org} {project}"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: python26
|
name: python26
|
||||||
@ -114,16 +114,7 @@
|
|||||||
- builder:
|
- builder:
|
||||||
name: tarball
|
name: tarball
|
||||||
builders:
|
builders:
|
||||||
- shell: |
|
- shell: "/usr/local/jenkins/slave_scripts/run-tarball.sh {github-org} {project}"
|
||||||
#!/bin/bash -xe
|
|
||||||
|
|
||||||
rm -f dist/*.tar.gz
|
|
||||||
tox -evenv python setup.py sdist
|
|
||||||
|
|
||||||
echo "SHA1sum: "
|
|
||||||
sha1sum dist/*
|
|
||||||
echo "MD5sum: "
|
|
||||||
md5sum dist/*
|
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: devstack-checkout
|
name: devstack-checkout
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- puppet-syntax
|
- puppet-syntax
|
||||||
- pyflakes
|
- pyflakes:
|
||||||
|
github-org: openstack-infra
|
||||||
|
project: config
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- console-log
|
- console-log
|
||||||
@ -38,7 +40,7 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: "./tools/run-compare-xml.sh"
|
- shell: "./tools/run-compare-xml.sh openstack-infra config"
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- console-log
|
- console-log
|
||||||
@ -53,7 +55,7 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- shell: "./tools/run-layout.sh"
|
- shell: "./tools/run-layout.sh openstack-infra config"
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- console-log
|
- console-log
|
||||||
@ -69,7 +71,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- docs
|
- docs:
|
||||||
|
github-org: openstack-infra
|
||||||
|
project: config
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- scp:
|
- scp:
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- docs
|
- docs:
|
||||||
|
github-org: '{github-org}'
|
||||||
|
project: '{name}'
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- ftp:
|
- ftp:
|
||||||
|
@ -70,7 +70,9 @@
|
|||||||
- timed: '0 6 * * *'
|
- timed: '0 6 * * *'
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
- docs
|
- docs:
|
||||||
|
github-org: '{github-org}'
|
||||||
|
project: '{name}'
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- console-log-periodic
|
- console-log-periodic
|
||||||
|
@ -12,7 +12,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- coverage
|
- coverage:
|
||||||
|
github-org: '{github-org}'
|
||||||
|
project: '{name}'
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- coverage-log-post
|
- coverage-log-post
|
||||||
@ -29,7 +31,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- pep8
|
- pep8:
|
||||||
|
github-org: '{github-org}'
|
||||||
|
project: '{name}'
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- pep8
|
- pep8
|
||||||
@ -46,7 +50,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- pylint
|
- pylint:
|
||||||
|
github-org: '{github-org}'
|
||||||
|
project: '{name}'
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- pylint
|
- pylint
|
||||||
@ -215,7 +221,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- docs
|
- docs:
|
||||||
|
github-org: '{github-org}'
|
||||||
|
project: '{name}'
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- console-log
|
- console-log
|
||||||
@ -232,7 +240,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- pyflakes
|
- pyflakes:
|
||||||
|
github-org: '{github-org}'
|
||||||
|
project: '{name}'
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- console-log
|
- console-log
|
||||||
@ -248,6 +258,7 @@
|
|||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- tarball:
|
- tarball:
|
||||||
|
github-org: '{github-org}'
|
||||||
project: '{name}'
|
project: '{name}'
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
@ -267,12 +278,13 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
|
- tarball:
|
||||||
|
github-org: '{github-org}'
|
||||||
|
project: '{name}'
|
||||||
- shell: |
|
- shell: |
|
||||||
#!/bin/bash -xe
|
#!/bin/bash -xe
|
||||||
BRANCH=$ZUUL_REFNAME
|
BRANCH=$ZUUL_REFNAME
|
||||||
BRANCH_PATH=`echo $BRANCH | tr / -`
|
BRANCH_PATH=`echo $BRANCH | tr / -`
|
||||||
|
|
||||||
tox -v -evenv python setup.py sdist
|
|
||||||
mv dist/* dist/{name}-$BRANCH_PATH.tar.gz
|
mv dist/* dist/{name}-$BRANCH_PATH.tar.gz
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- docs
|
- docs:
|
||||||
|
github-org: openstack-infra
|
||||||
|
project: zuul
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- scp:
|
- scp:
|
||||||
@ -28,7 +30,9 @@
|
|||||||
|
|
||||||
builders:
|
builders:
|
||||||
- gerrit-git-prep
|
- gerrit-git-prep
|
||||||
- coverage
|
- coverage:
|
||||||
|
github-org: openstack-infra
|
||||||
|
project: zuul
|
||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- coverage-log
|
- coverage-log
|
||||||
|
@ -16,6 +16,20 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
#TODO: make fatal in subsequent change: exit 1
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
fi
|
||||||
|
|
||||||
rm -fr .test
|
rm -fr .test
|
||||||
mkdir .test
|
mkdir .test
|
||||||
cd .test
|
cd .test
|
||||||
|
@ -14,6 +14,20 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
org=$1
|
||||||
|
project=$2
|
||||||
|
|
||||||
|
if [[ -z "$org" || -z "$project" ]]
|
||||||
|
then
|
||||||
|
echo "Usage: $0 ORG PROJECT"
|
||||||
|
echo
|
||||||
|
echo "ORG: The project organization (eg 'openstack')"
|
||||||
|
echo "PROJECT: The project name (eg 'nova')"
|
||||||
|
#TODO: make fatal in subsequent change: exit 1
|
||||||
|
else
|
||||||
|
/usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
|
||||||
|
fi
|
||||||
|
|
||||||
rm -fr .test
|
rm -fr .test
|
||||||
mkdir .test
|
mkdir .test
|
||||||
cd .test
|
cd .test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user