0af9b2c178
Between the Icehouse and Juno releases, OpenStack changed its supported Ubuntu LTS platform from Precise to Trusty. In support of continuing testing stable/icehouse and prior branches on Precise while starting to test newer branches on Trusty, a branch-based decision tree was introduced into our Zuul configuration by way of complex parameter functions with an ever growing list of regular expression matches on job names. Now that Icehouse is EOL (in fact, Juno is too) this simply adds unnecessary complexity and an attractive nuisance for cargo-cult copying into new job and job-template definitions which don't even need it. In preparation to remove the associated parameter functions, get rid of multiple labels in all jobs and set them to whatever label Zuul would ultimately select. This change touches a vast number, possibly a majority, of our jobs and so manual jenkins-jobs updates on all Jenkins masters will be needed after this merges, before it's safe to approve the corresponding Zuul configuration cleanup. Change-Id: Ic952ee02da2c77fe2ace81c4e2fa87531be6119c
89 lines
3.3 KiB
YAML
89 lines
3.3 KiB
YAML
- job:
|
|
name: gate-groups-unittests
|
|
node: bare-precise
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
# fetch drush
|
|
mkdir drush
|
|
curl -L https://github.com/drush-ops/drush/archive/6.0.0.tar.gz | tar -xz -C drush --strip 1
|
|
# build distribution
|
|
export PATH=./drush:$PATH
|
|
sh scripts/dev-build.sh
|
|
publishers:
|
|
- console-log
|
|
- coverage-log
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'logs/$LOG_PATH'
|
|
source: './reports/**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: true
|
|
|
|
- job-template:
|
|
name: 'groups-release-{job-suffix}'
|
|
node: bare-precise
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
/usr/local/jenkins/slave_scripts/version-properties.sh
|
|
source version.properties
|
|
# fetch drush
|
|
mkdir drush
|
|
curl -L https://github.com/drush-ops/drush/archive/6.0.0.tar.gz | tar -xz -C drush --strip 1
|
|
# build distribution
|
|
export PATH=./drush:$PATH
|
|
sh scripts/dev-build.sh
|
|
# Clean/create a tarball directory
|
|
rm -rf tarballs
|
|
mkdir -p tarballs
|
|
# Create an archive tarball.
|
|
tar -czf groups-$PROJECT_VER.tar.gz publish/
|
|
cp groups-$PROJECT_VER.tar.gz tarballs/groups-latest.tar.gz
|
|
mv groups-$PROJECT_VER.tar.gz tarballs/
|
|
# generate md5 checksums
|
|
cd tarballs
|
|
md5sum groups-$PROJECT_VER.tar.gz > groups-$PROJECT_VER.md5
|
|
sed s/$PROJECT_VER/latest/g groups-$PROJECT_VER.md5 > groups-latest.md5
|
|
cd ..
|
|
# build manifest file
|
|
if [[ "$COMMITS_SINCE_TAG" == "" ]]; then
|
|
VERSION=7.x-$PROJECT_VER
|
|
else
|
|
VERSION=7.x-0.x-dev
|
|
fi
|
|
MD5HASH=$(cat tarballs/groups-$PROJECT_VER.md5 | cut -d ' ' -f1)
|
|
OUTFILE=drupal-updates/release-history/groups/7.x
|
|
MANIFESTURL=http://tarballs.openstack.org/groups/drupal-updates/release-history/groups/7.x
|
|
mkdir -p drupal-updates/release-history/groups
|
|
scripts/release-manifest.php --version=$VERSION --releasetar=groups-$PROJECT_VER.tar.gz --md5=$MD5HASH --outfile=$OUTFILE --manifest-url=$MANIFESTURL --verbose --debug
|
|
publishers:
|
|
- console-log
|
|
- coverage-log
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'logs/$LOG_PATH'
|
|
source: 'reports/**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: true
|
|
- target: 'tarballs/groups/'
|
|
source: 'tarballs/*.tar.gz'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- target: 'tarballs/groups/'
|
|
source: 'tarballs/*.md5'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- target: 'tarballs/groups/'
|
|
source: 'drupal-updates/**'
|
|
keep-hierarchy: true
|
|
copy-after-failure: false
|