project-config/jenkins/jobs/infra.yaml
Paul Belanger 08b5836314
Update periodic-package-stackviz-element job
Use the new package build by gulp, this includes everything we now
need to properly pip install.

Change-Id: Ia9cc6533655c9476b2040ded0914b1fbedeb06aa
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-31 13:11:43 -04:00

493 lines
11 KiB
YAML

- job:
name: gate-project-config-gerrit
node: ubuntu-xenial
builders:
- net-info
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'gerrit'
publishers:
- test-results
- console-log
- job:
name: gate-project-config-irc-access
node: ubuntu-xenial
builders:
- net-info
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'irc'
publishers:
- test-results
- console-log
- job:
name: gate-project-config-grafyaml
node: ubuntu-xenial
builders:
- net-info
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'grafyaml'
publishers:
- test-results
- console-log
- job:
name: gate-project-config-layout
node: ubuntu-trusty
builders:
- net-info
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'zuul'
publishers:
- test-results
- console-log
- job:
name: gate-project-config-jenkins-project
node: ubuntu-xenial
builders:
- net-info
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'jenkins-project'
publishers:
- test-results
- console-log
- job:
name: gate-project-config-nodepool
node: ubuntu-xenial
builders:
- net-info
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'nodepool'
publishers:
- test-results
- console-log
- job-template:
name: gate-{name}-bindep-fallback-{node}{suffix}
wrappers:
- timestamps
builders:
- net-info
- zuul-git-prep
- install-distro-packages-fallback-test
publishers:
- test-results
- console-log
node: '{node}'
- job-group:
name: bindep-fallback-tests
suffix: ''
node:
- centos-7
- fedora-25
- debian-jessie
- opensuse-422
- ubuntu-trusty
- ubuntu-xenial
jobs:
- gate-{name}-bindep-fallback-{node}{suffix}
- builder:
name: infra-puppet-apply-prep
builders:
- shell: |
#!/bin/bash -xe
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git git://git.openstack.org openstack-infra/system-config
- publisher:
name: infra-puppet-apply-logs
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'openstack-infra/system-config/applytest/**'
keep-hierarchy: false
copy-after-failure: true
- console-log
- job-template:
name: 'gate-infra-puppet-apply-{puppet_version}-{node}'
node: '{node}'
builders:
- print-template-name:
template-name: "{template-name}"
- net-info
- infra-puppet-apply-prep
- shell: |
#!/bin/bash -xe
cd openstack-infra/system-config
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
if [ "{puppet_version}" == "4" ]; then
# TODO:
echo "TODO: add logic to deploy puppet4"
fi
./tools/apply-test.sh
publishers:
- infra-puppet-apply-logs
- job-template:
name: 'gate-logstash-filters-{node}'
node: '{node}'
builders:
- print-template-name:
template-name: "{template-name}"
- net-info
- infra-puppet-apply-prep
- shell: |
#!/bin/bash -xe
cd openstack-infra/system-config
./tools/logstash-filter-test.sh
publishers:
- infra-puppet-apply-logs
- job-template:
name: 'gate-openstackci-beaker-{node}'
node: '{node}'
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- net-info
- pin-pip
- zuul-clone:
project: openstack-infra/puppet-openstackci
- puppet-prepare-node
- allow-local-ssh-root
- shell: |
sudo gem install bundler --no-rdoc --no-ri --verbose
- revoke-sudo
- shell: |
cd openstack-infra/puppet-openstackci
mkdir .bundled_gems
export GEM_HOME=`pwd`/.bundled_gems
bundle install
export BEAKER_set=nodepool-{ostype}
export BEAKER_debug=yes
export BEAKER_color=no
bundle exec rspec spec/acceptance
wrappers:
- build-timeout:
timeout: 60
- timestamps
publishers:
- console-log
- job:
name: propose-project-config-update
node: proposal
builders:
- link-logs
- net-info
- zuul-git-branch-prep:
branch: master
- shell: ./tools/propose_projects_yaml_update.sh
publishers:
- console-log
- job:
name: irc-meetings-publish
node: ubuntu-xenial
builders:
- net-info
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'ical'
publishers:
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'output/**'
keep-hierarchy: false
copy-after-failure: true
- scp:
site: 'yaml2ical'
files:
- target: ''
source: 'output/index.html'
copy-after-failure: false
- scp:
site: 'yaml2ical'
files:
- target: ''
source: 'output/irc-meetings.ical'
copy-after-failure: false
- scp:
site: 'yaml2ical'
files:
- target: 'calendars/'
source: 'output/calendars/*'
copy-after-failure: false
- test-results
- console-log
- job:
name: gate-irc-meetings-tox-ical
node: ubuntu-xenial
builders:
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'ical'
publishers:
- postbuildscript:
builders:
- shell: |
#!/bin/bash -x
# We don't want this file to conflict with the log index
if test -f output/index.html; then
mv output/index.html output/site-index.html
fi
# These flags really mean only if on * when
# checked. When both set to false the post script
# should run on every job regardless of status.
onfailure: False
onsuccess: False
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH'
source: 'output/**'
keep-hierarchy: false
copy-after-failure: true
- test-results
- console-log
- job:
name: gate-infra-ansible
node: ubuntu-xenial
builders:
- net-info
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'ansible-syntax-check'
publishers:
- test-results
- console-log
- job:
name: gate-project-config-dib
node: ubuntu-xenial
builders:
- net-info
- zuul-git-prep
- install-distro-packages
- revoke-sudo
- run-tox:
envlist: 'dib'
publishers:
- test-results
- console-log
- job-template:
name: 'gate-puppet-openstack-infra-spec-helper-unit-{node}'
node: '{node}'
builders:
- print-template-name:
template-name: "{template-name}"
- link-logs
- net-info
- zuul-clone:
project: openstack-infra/puppet-openstack_infra_spec_helper
- install-distro-packages
- puppet-prepare-node
- shell: |
#!/bin/bash -xe
cd openstack-infra/puppet-openstack_infra_spec_helper
./run_unit_tests.sh
wrappers:
- build-timeout:
timeout: 60
- timestamps
publishers:
- console-log
- job-group:
name: 'puppet-openstack-infra-spec-helper-jobs'
node:
- centos-7
- ubuntu-xenial
- ubuntu-trusty
jobs:
- 'gate-puppet-openstack-infra-spec-helper-unit-{node}'
- job:
name: periodic-package-afs-centos7
node: centos-7
builders:
- net-info
- shell: |
#!/bin/bash
set -eux
# There are no official builds for AFS on Centos 7, hence
# we build our own and publish them to tarballs.openstack.org
# for our centos hosts that need access to the mirror to
# consume.
# TODO: fedora
YUM=${YUM:-yum}
VERSION=1.6.16
SRC_VERSION=${VERSION}-1
SRC_RPM=openafs-${SRC_VERSION}.src.rpm
SRC_URL=https://www.openafs.org/dl/openafs/${VERSION}/${SRC_RPM}
UPSTREAM_BASE=https://tarballs.openstack.org/package-afs-centos7
UPSTREAM_CHECK=${UPSTREAM_BASE}/openafs-client-${SRC_VERSION}.el7.centos.x86_64.rpm
if wget -O/dev/null -q $UPSTREAM_CHECK; then
echo "Found existing upstream RPM build, nothing to do"
# $WORKSPACE will just be blank, scp should just
# publish nothing
exit 0
fi
# some common prereqs
sudo yum -y groupinstall "Development Tools" "Development Libraries"
sudo yum -y install rpm-build kernel-devel createrepo
wget $SRC_URL
# install the build dependencies for the package
sudo yum-builddep -y ./${SRC_RPM}
# install source-rpm
# (this installs to ~/rpmbuild)
rpm -i ./${SRC_RPM}
# build everything
pushd ~/rpmbuild/SPECS/
rpmbuild -ba ./openafs.spec
popd
# create final repo for copying
createrepo ~/rpmbuild/RPMS/x86_64
# move into $WORKSPACE for copy
mv ~/rpmbuild/RPMS/x86_64 $WORKSPACE/package-afs-centos7
publishers:
- scp:
site: 'tarballs.openstack.org'
files:
- target: 'tarballs/'
source: 'package-afs-centos7/**'
keep-hierarchy: true
copy-after-failure: false
- console-log
- job:
name: periodic-package-stackviz-element
node: ubuntu-xenial
builders:
- zuul-git-branch-prep:
branch: master
- install-distro-packages
- revoke-sudo
- shell: |
#!/bin/bash -ex
# NOTE(pabelanger): Delete npm mirror, since it is currently broken.
rm -rf ~/.npmrc
export DISPLAY=:99
# Because we want to publish the build folder, create an empty
# .npmignore file.
touch .npmignore
npm install --verbose
npm run prod --verbose
mv dist/stackviz*.tar.gz dist/stackviz-latest.tar.gz
publishers:
- tarball:
project: 'package-stackviz-element'
- console-log
- job:
name: gate-zuul-nodepool
node: ubuntu-xenial
builders:
- zuul-clone-workspace:
project: openstack-infra/zuul
- install-distro-packages
- shell: tools/nodepool-integration-setup.sh
- run-tox:
envlist: 'nodepool'
publishers:
- test-results
- scp:
site: 'static.openstack.org'
files:
- target: 'logs/$LOG_PATH/logs'
source: 'logs/**'
keep-hierarchy: true
copy-after-failure: true
- console-log