Merge "rm unused jenkins/scripts/*"
This commit is contained in:
commit
c2942d2863
@ -1,39 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright 2012 Hewlett-Packard Development Company, L.P.
|
||||
#
|
||||
# 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.
|
||||
|
||||
# Find out if jenkins has triggered the out-of-memory killer by checking
|
||||
# the output of dmesg before and after a test run.
|
||||
|
||||
PATTERN=" invoked oom-killer: "
|
||||
|
||||
case "$1" in
|
||||
pre)
|
||||
rm -fr /tmp/jenkins-oom-log
|
||||
mkdir /tmp/jenkins-oom-log
|
||||
dmesg > /tmp/jenkins-oom-log/pre
|
||||
exit 0
|
||||
;;
|
||||
post)
|
||||
dmesg > /tmp/jenkins-oom-log/post
|
||||
diff /tmp/jenkins-oom-log/{pre,post} \
|
||||
| grep "^> " | sed "s/^> //" > /tmp/jenkins-oom-log/diff
|
||||
if grep -q "$PATTERN" /tmp/jenkins-oom-log/diff
|
||||
then
|
||||
cat /tmp/jenkins-oom-log/diff
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
@ -1,32 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# Extract Python package name from setup.cfg
|
||||
|
||||
import ConfigParser
|
||||
import sys
|
||||
|
||||
import wheel.bdist_wheel
|
||||
|
||||
setup_cfg = ConfigParser.SafeConfigParser()
|
||||
setup_cfg.read("setup.cfg")
|
||||
distname = setup_cfg.get("metadata", "name")
|
||||
assert distname
|
||||
if len(sys.argv) == 1 or sys.argv[1] == "--tarball":
|
||||
print(distname)
|
||||
elif sys.argv[1] == "--wheel":
|
||||
print(wheel.bdist_wheel.safer_name(distname))
|
||||
else:
|
||||
sys.stderr.write("ERROR: Valid options are --tarball and --wheel\n")
|
||||
sys.exit(1)
|
@ -1,31 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# Extract Python package name from setup.cfg
|
||||
|
||||
import ConfigParser
|
||||
|
||||
universal = False
|
||||
|
||||
setup_cfg = ConfigParser.SafeConfigParser()
|
||||
setup_cfg.read("setup.cfg")
|
||||
if setup_cfg.has_option("bdist_wheel", "universal"):
|
||||
universal = setup_cfg.getboolean("bdist_wheel", "universal")
|
||||
elif setup_cfg.has_option("wheel", "universal"):
|
||||
universal = setup_cfg.getboolean("wheel", "universal")
|
||||
|
||||
if universal:
|
||||
print("py2.py3")
|
||||
else:
|
||||
print("py2")
|
@ -1,39 +0,0 @@
|
||||
#!/bin/bash -xe
|
||||
# Copyright 2016 Red Hat, Inc.
|
||||
#
|
||||
# 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.
|
||||
|
||||
CODENAME=$1
|
||||
BASE=/afs/.openstack.org/mirror/debian-openstack
|
||||
BRANCH=$(echo $ZUUL_REFNAME | cut -d/ -f2)
|
||||
K5START="k5start -t -f /etc/packaging.keytab \
|
||||
service/packaging \
|
||||
-- timeout -k 2m 5m"
|
||||
|
||||
# Build up which distribution we are using. Here we will be
|
||||
# converting:
|
||||
# jessie-> jessie-newton
|
||||
# jessie-backports -> jessie-newton-backports
|
||||
IFS='-' read -r -a array <<< $CODENAME
|
||||
DISTRIBUTION="${array[0]}"
|
||||
DISTRIBUTION+=-$BRANCH
|
||||
if ! [ -z "${array[1]}" ]; then
|
||||
DISTRIBUTION+="-${array[1]}"
|
||||
fi
|
||||
|
||||
cd $BASE/dists/$DISTRIBUTION
|
||||
|
||||
$K5START gpg --armor --detach-sign --output Release.gpg Release
|
||||
$K5START gpg --armor --clearsign --output InRelease Release
|
||||
|
||||
date --iso-8601=ns | $K5START tee $BASE/timestamp.txt
|
Loading…
x
Reference in New Issue
Block a user