Skip to content
Snippets Groups Projects
Commit 933c2552 authored by Eric Cano's avatar Eric Cano
Browse files

Various bugfixes.

parent decc99c7
Branches
Tags
No related merge requests found
......@@ -59,18 +59,18 @@ if [ -z "${instance}" ]; then
usage
fi
if [ ! -z "$(pipelineid)" && ! -z "${buildtree}" ]; then
if [ ! -z "${pipelineid}" -a ! -z "${buildtree}" ]; then
usage
fi
if [ ! -z "(buildtree)" ]; then
if [ ! -z "${buildtree}" ]; then
# We are going to run with generic images against a build tree.
echo "Creating instance for build tree in ${buildtree}"
# Create temporary directory for modified pod files
poddir=$(mktemp -d)
cp pod-* ${poddir}
sed -i ${poddir}/pod-* -e "s/\(^\s\+image:).*/\1/"
sed -i ${poddir}/pod-* -e "s/\(^\s\+image:\).*/\1 buildtree-runner/"
if [ ! -z "${error}" ]; then
echo -e "ERROR:\n${error}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment