Cleanup jenkins/scripts

Mark all files that are run (and not only sourced) as executable.

Remove files bump-milestone.sh, run-xmllint.sh and wait_for_nova.sh,
those are not used anywhere in OpenStack (according to codesearch.o.o
and local git grep).

Change-Id: Ie344c9f9f8cc39b102f0147ecffa189e1b83da1e
This commit is contained in:
Andreas Jaeger
2017-04-10 22:41:50 +02:00
parent fbf7661ed1
commit 754bbb6d15
12 changed files with 0 additions and 72 deletions

0
jenkins/scripts/afs-slug.sh Normal file → Executable file
View File

View File

@@ -1,56 +0,0 @@
#!/bin/bash -xe
# This script store release meta information in the git repository for
# a project. It does so on an isolated, hidden branch called
# refs/meta/openstack/release. Because it's not under refs/heads, a
# standard clone won't retrieve it or cause it to show up in the list
# of remote branches. The branch shares no history with the project
# itself; it starts with its own root commit. Jenkins is permitted to
# push directly to refs/meta/openstack/*.
GIT_HOST="review.openstack.org:29418"
PROJECT_PREFIX="openstack"
if [[ ! -e ${PROJECT} ]]; then
git clone ssh://$GIT_HOST/$PROJECT_PREFIX/$PROJECT
fi
cd $PROJECT
git checkout master
# Get the list of meta refs
git fetch origin +refs/meta/*:refs/remotes/meta/*
# Checkout or create the meta/openstack/release branch
if ! { git branch -a |grep ^[[:space:]]*remotes/meta/openstack/release$; }
then
git checkout --orphan release
# Delete everything so the first commit is truly empty:
git rm -rf .
# git rm -rf leaves submodule directories:
find -maxdepth 1 -not -regex '\./\.git\(/.*\)?' -not -name . \
-exec rm -fr {} \;
ls -la
else
git branch -D release || /bin/true
git checkout -b release remotes/meta/openstack/release
fi
# Normally a branch name will just be a file, but we can have branches
# like stable/diablo, so in that case, make the "stable/" directory
# if needed:
mkdir -p $(dirname $BRANCH)
# Read and update the value for the branch
if [ -e "$BRANCH" ]; then
echo "Current contents of ${BRANCH}:"
cat "${BRANCH}"
else
echo "${BRANCH} does not exist. Creating it."
fi
echo "Updating ${BRANCH} to read $VALUE"
echo "$VALUE" > ${BRANCH}
git add ${BRANCH}
git commit -m "Milestone ${BRANCH} set to $VALUE"
git push origin HEAD:refs/meta/openstack/release

0
jenkins/scripts/jenkinsci-upload.sh Normal file → Executable file
View File

0
jenkins/scripts/mavencentral-upload.sh Normal file → Executable file
View File

0
jenkins/scripts/package-gerrit.sh Normal file → Executable file
View File

0
jenkins/scripts/php-laravel-build.sh Normal file → Executable file
View File

0
jenkins/scripts/pypi-extract-name.py Normal file → Executable file
View File

0
jenkins/scripts/pypi-extract-universal.py Normal file → Executable file
View File

0
jenkins/scripts/run-tox-api-ref.sh Normal file → Executable file
View File

0
jenkins/scripts/run-wheel.sh Normal file → Executable file
View File

View File

@@ -1,4 +0,0 @@
#!/bin/bash -xe
mkdir -p target/
/usr/bin/xmllint -noent $1 > target/$(basename $1)

View File

@@ -1,12 +0,0 @@
#!/bin/bash -xe
URL=$1
echo "Jenkins: Waiting for Nova to start on infrastructure node"
RET=7
while [ $RET != 0 ]; do
curl -s $URL >/dev/null
RET=$?
sleep 1
done
echo "Jenkins: Nova is running."